Skip to content

Commit 5619e49

Browse files
authored
Debug git push
1 parent 5b84907 commit 5619e49

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/apple.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,24 +193,27 @@ jobs:
193193
runs-on: ubuntu-22.04
194194
needs: [build-frameworks-ios, set-version]
195195
timeout-minutes: 30
196+
# UNCOMMENT THIS LINE BEFORE LANDING
197+
# envionrment: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/nightly') && 'cherry-pick-bot' || '' }}
198+
# FOR TESTING
199+
environment: cherry-pick-bot
196200
permissions:
197201
id-token: write
198202
contents: write
199203
steps:
200204
- uses: actions/checkout@v3
201205
with:
202206
fetch-depth: 0
203-
token: ${{ secrets.GITHUB_TOKEN }}
204-
persist-credentials: true
207+
token: ${{ secrets.GH_PYTORCHBOT_CHERRY_PICK_TOKEN }}
205208
- uses: actions/setup-python@v4
206209
with:
207210
python-version: '3.11'
208211
cache: pip
209-
- name: configure aws credentials
210-
uses: aws-actions/[email protected]
211-
with:
212-
role-to-assume: arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-ios
213-
aws-region: us-east-1
212+
#- name: configure aws credentials
213+
# uses: aws-actions/[email protected]
214+
# with:
215+
# role-to-assume: arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-ios
216+
# aws-region: us-east-1
214217
- name: Download the artifact
215218
uses: actions/download-artifact@v3
216219
with:
@@ -263,16 +266,16 @@ jobs:
263266
sed -i "s/__SHA256_${FRAMEWORK}__/${CHECKSUM}/g" Package.swift
264267
done < "${RUNNER_TEMP}/checksums.txt"
265268
266-
if [[ "${UPLOAD_ON_MAIN:-0}" == "1" ]]; then
269+
#if [[ "${UPLOAD_ON_MAIN:-0}" == "1" ]]; then
267270
git config --global user.name "PyTorch Bot"
268271
git config --global user.email "[email protected]"
269272
git add Package.swift
270273
git commit -m "${VERSION}"
271274
git push origin "${BRANCH}"
272-
else
273-
echo "Draft Package.swift:"
274-
cat Package.swift
275-
fi
275+
#else
276+
# echo "Draft Package.swift:"
277+
# cat Package.swift
278+
#fi
276279
277280
build-benchmark-app:
278281
name: build-benchmark-app

0 commit comments

Comments
 (0)