Skip to content

Commit e9d51df

Browse files
authored
Fix branch name in apple.yml (#7993)
Fix release version in apple.yml
1 parent 95a0ef6 commit e9d51df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/apple.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
runs-on: ubuntu-22.04
198198
needs: [build-frameworks-ios, set-version]
199199
timeout-minutes: 30
200-
environment: ${{ github.ref == 'refs/heads/main' && 'cherry-pick-bot' || '' }}
200+
environment: ${{ github.ref == 'refs/heads/release/0.5' && 'cherry-pick-bot' || '' }}
201201
permissions:
202202
id-token: write
203203
contents: write
@@ -221,11 +221,11 @@ jobs:
221221
# NB: The name here needs to match the upload-artifact name from build-frameworks-ios job
222222
name: executorch-frameworks-ios
223223
path: ${{ runner.temp }}/frameworks-ios/
224-
- name: Only push to S3 when running the workflow manually from main branch
225-
if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
224+
- name: Only push to S3 when running the workflow manually from release branch
225+
if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/release/0.5' }}
226226
shell: bash
227227
run: |
228-
echo "UPLOAD_ON_MAIN=1" >> "${GITHUB_ENV}"
228+
echo "UPLOAD_ON_RELEASE=1" >> "${GITHUB_ENV}"
229229
- name: Upload the artifact to ossci-ios S3 bucket
230230
shell: bash
231231
run: |
@@ -235,7 +235,7 @@ jobs:
235235
pip install awscli==1.32.18
236236
237237
AWS_CMD="aws s3 cp --dryrun"
238-
if [[ "${UPLOAD_ON_MAIN:-0}" == "1" ]]; then
238+
if [[ "${UPLOAD_ON_RELEASE:-0}" == "1" ]]; then
239239
AWS_CMD="aws s3 cp"
240240
fi
241241

0 commit comments

Comments
 (0)