pytorch/.github/workflows/update-commit-hashes.yml
Catherine Lee 514bf9fecb automate hash pinning (#79470)
automate the pr approval and merging of hash pinning
also switch to a python script for easier control flow
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79470
Approved by: https://github.com/seemethere
2022-06-17 18:22:15 +00:00

37 lines
1.1 KiB
YAML

name: update-commit-hashes
on:
schedule:
# Every day at 12:37am
# Choose a random time near midnight because it may be delayed if there are high loads
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: 37 0 * * *
workflow_dispatch:
jobs:
update-xla-commit-hash:
uses: ./.github/workflows/_update-commit-hash.yml
with:
repo-name: xla
branch: master
secrets:
MERGEBOT_TOKEN: ${{ secrets.MERGEBOT_TOKEN }}
PYTORCHBOT_TOKEN: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
update-torchdynamo-commit-hash:
uses: ./.github/workflows/_update-commit-hash.yml
with:
repo-name: torchdynamo
branch: main
secrets:
MERGEBOT_TOKEN: ${{ secrets.MERGEBOT_TOKEN }}
PYTORCHBOT_TOKEN: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
update-vision-commit-hash:
uses: ./.github/workflows/_update-commit-hash.yml
with:
repo-name: vision
branch: main
secrets:
MERGEBOT_TOKEN: ${{ secrets.MERGEBOT_TOKEN }}
PYTORCHBOT_TOKEN: ${{ secrets.GH_PYTORCHBOT_TOKEN }}