Skip to content

Commit c8b4011

Browse files
authored
chore: Update pod_try_sync.yml (#133)
* chore: Update pod_try_sync.yml Change-Id: Ibd53d744c8607ac5e4f8619883888c77d9271afb * Add verbose Change-Id: Iffc96d8ab2ac4a557652f1bd16b1d09acc9c1dc2
1 parent 37ebe46 commit c8b4011

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/pod_try_sync.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ jobs:
3333

3434
# Install CocoaPods v 1.6.1. Need to use this version since there are issues with running `pod try` on later versions
3535
- name: Install CocoaPods 1.6.1
36-
run: |
37-
sudo gem install cocoapods -v 1.6.1
36+
uses: maxim-lobanov/setup-cocoapods@v1
37+
with:
38+
version: 1.6.1
3839

3940
# Install CocoaPods v 1.6.1. Need to use this version since there are issues with running `pod try` on later versions
4041
- name: Update CocoaPod Repo
4142
run: |
42-
pod _1.6.1_ repo update
43+
pod repo update
4344
4445
# Copy pod try GoogleMaps Objective-C to current copy
4546
- name: Copy pod try GoogleMaps Objective-C changes into current copy
@@ -68,7 +69,7 @@ jobs:
6869
6970
# Commit changes
7071
- name: PR Changes
71-
uses: peter-evans/create-pull-request@v2
72+
uses: peter-evans/create-pull-request@v4
7273
if: steps.pod_try_copy.outputs.filtered_lines_modified > 0
7374
with:
7475
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}

copy_pod_try.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ DESTINATION_DIR="$2"
1818
POD_TRY_OPTION="$3"
1919

2020
echo "Invoking 'pod try $POD_NAME'"
21+
22+
pod _1.6.1_ --verbose try $POD_NAME <<< $POD_TRY_OPTION
23+
2124
POD_TRY_DIR="$(pod _1.6.1_ try $POD_NAME <<< $POD_TRY_OPTION | tail -1 | awk '{print $2}' | echo "/$(cut -d\/ -f2-11)")"
2225

2326
echo "Copying contents of '$POD_TRY_DIR' into '$DESTINATION_DIR'"

0 commit comments

Comments
 (0)