Skip to content

Commit

Permalink
Also trigger nightly build on schedule (#5222)
Browse files Browse the repository at this point in the history
A follow-up after #5217 and
pytorch/ao#250, repo like `torch/ao` doesn't
have a nightly branch and build nightly directly out of main on a daily
schedule.
  • Loading branch information
huydhn authored May 21, 2024
1 parent c361d8b commit 1121e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/_binary_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
path: ${{ inputs.repository }}/dist/

- name: Configure aws credentials (pytorch account)
if: ${{ inputs.trigger-event == 'push' && startsWith(github.event.ref, 'refs/heads/nightly') }}
if: ${{ inputs.trigger-event == 'schedule' || (inputs.trigger-event == 'push' && startsWith(github.event.ref, 'refs/heads/nightly')) }}
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::749337293305:role/gha_workflow_nightly_build_wheels
Expand Down

0 comments on commit 1121e65

Please sign in to comment.