Scheduled Checks #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scheduled Checks | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' # once a month | |
jobs: | |
setup: | |
name: Setup Tasks | |
runs-on: ubuntu-latest | |
outputs: | |
tags: ${{ steps.get-released-config.outputs.tags }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Get all released configs | |
id: get-released-config | |
run: echo "tags=$(jq --compact-output --raw-output '.tags' config/released-configs.json)" >> $GITHUB_OUTPUT | |
repro-ci: | |
# We use this reusable workflow with a matrix strategy rather than calling repro-ci.yml, as | |
# we may want to do config-branch-specific tasks after the matrixed repro-ci.yml has completed. | |
needs: | |
- setup | |
strategy: | |
fail-fast: false | |
matrix: | |
config-tag: ${{ fromJson(needs.setup.outputs.tags) }} | |
uses: ./.github/workflows/schedule-2-start.yml | |
with: | |
config-tag: ${{ matrix.config-tag }} | |
secrets: inherit | |
permissions: | |
checks: write | |
contents: write | |
issues: write |