diff --git a/.github/workflows/trigger-nightly.yml b/.github/workflows/trigger-nightly.yml new file mode 100644 index 00000000000..78832c4ac78 --- /dev/null +++ b/.github/workflows/trigger-nightly.yml @@ -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