diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a55ef2b1f..1cbbf2d6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: CI on: workflow_dispatch: + schedule: + - cron: '0 6 * * 1' # Every Monday at 6am UTC push: branches: - main diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index bd747bd4e..a4f55e4d3 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -2,6 +2,8 @@ name: Downstream on: workflow_dispatch: + schedule: + - cron: '0 7 * * 1' # Every Monday at 6am UTC pull_request: # We also want this workflow triggered if the `Downstream CI` label is # added or present when PR is updated diff --git a/.github/workflows/s390x.yml b/.github/workflows/s390x.yml index e0e6af504..c28e403b2 100644 --- a/.github/workflows/s390x.yml +++ b/.github/workflows/s390x.yml @@ -2,6 +2,8 @@ name: s390x on: workflow_dispatch: + schedule: + - cron: '0 8 * * 1' # Every Monday at 6am UTC pull_request: # We also want this workflow triggered if the `s390x` label is # added or present when PR is updated diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml deleted file mode 100644 index e485567fe..000000000 --- a/.github/workflows/scheduled.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Scheduled Workflows - -on: - # Allow manual runs through the web UI - workflow_dispatch: - schedule: - # ┌───────── minute (0 - 59) - # │ ┌───────── hour (0 - 23) - # │ │ ┌───────── day of the month (1 - 31) - # │ │ │ ┌───────── month (1 - 12 or JAN-DEC) - # │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT) - - cron: '0 6 * * 1' # Every Monday at 6am UTC - -jobs: - dispatch_workflows: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - branch: - - main - workflow: - - ci.yml - - downstream.yml - - s390x.yml - steps: - - run: gh workflow run ${{ matrix.workflow }} --repo asdf-format/asdf --ref ${{ matrix.branch }} - env: - GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}