• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: nightly
2
3on:
4  schedule:
5    - cron: 0 2 * * *
6  push:
7    tags:
8      - ciflow/nightly/*
9  pull_request:
10    paths:
11      .github/workflows/nightly.yml
12  workflow_dispatch:
13
14concurrency:
15  group: ${{ github.workflow }}--${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
16  cancel-in-progress: true
17
18jobs:
19  update-pytorch-commit-hash:
20    runs-on: ubuntu-latest
21    environment: ${{ (github.event_name == 'schedule') && 'update-commit-hash' || '' }}
22    steps:
23      - name: update-pytorch-commit-hash
24        uses: pytorch/test-infra/.github/actions/update-commit-hash@release/2.5
25        if: ${{ github.event_name == 'schedule' }}
26        with:
27          repo-name: pytorch
28          branch: main
29          pin-folder: .ci/docker/ci_commit_pins
30          test-infra-ref: release/2.5
31          updatebot-token: ${{ secrets.UPDATEBOT_TOKEN }}
32          pytorchbot-token: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
33