Skip to content

Check CPython releases #3

Check CPython releases

Check CPython releases #3

name: Check CPython releases
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
inputs:
max_dispatches:
description: "Maximum number of build dispatches (0 = dry run)"
required: false
default: "20"
type: string
permissions:
contents: read
actions: write
defaults:
run:
shell: bash --noprofile --norc -euxo pipefail {0}
jobs:
discover:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
MAX_DISPATCHES: ${{ inputs.max_dispatches || '20' }}
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.12'
- name: Enumerate and dispatch
run: python .github/scripts/check-releases.py