Skip to content

Commit

Permalink
Update action.yml - fix CHANNEL check (#5974)
Browse files Browse the repository at this point in the history
Seeing issue that nightly branch trying to use test auth:

https://github.com/pytorch/vision/actions/runs/11971829405/job/33403106608#step:19:185
  • Loading branch information
atalman authored Nov 22, 2024
1 parent ad8887a commit fbf9fd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/binary-upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ runs:
env:
AWS_WEB_IDENTITY_TOKEN_FILE: aws.web.identity.token.file
AWS_DEFAULT_REGION: us-east-1

shell: bash
working-directory: ${{ inputs.repository }}
run: |
Expand All @@ -34,7 +33,7 @@ runs:
yum install -y jq
export AWS_ROLE_ARN="arn:aws:iam::749337293305:role/gha_workflow_nightly_build_wheels"
if [[ ${{ env.CHANNEL == 'test' && startsWith(github.event.ref, 'refs/tags/v') }} ]]; then
if [[ "${CHANNEL}" == "test" ]]; then
export AWS_ROLE_ARN="arn:aws:iam::749337293305:role/gha_workflow_test_build_wheels"
fi
echo "NIGHTLY_OR_TEST=1" >> "${GITHUB_ENV}"
Expand Down

0 comments on commit fbf9fd1

Please sign in to comment.