Skip to content

Commit

Permalink
Trigger nightly build from GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Jul 3, 2023
1 parent 2d4484f commit 46c869b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trigger nightly builds

on:
schedule:
# every night at 4:30AM
- cron: 30 4 * * *
workflow_dispatch:

jobs:
tag_nightly:
if: ${{ github.repository == 'pytorch/vision' }}
name: Tag nightly from main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
token: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
- name: Tag nightly from main
run: |
git tag -f nightly
git push origin -f nightly

0 comments on commit 46c869b

Please sign in to comment.