Skip to content

scheduled docs generation #17

scheduled docs generation

scheduled docs generation #17

Workflow file for this run

name: scheduled docs generation
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
push:
permissions:
contents: write
jobs:
get-versions:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.get-versions.outputs.versions }}
steps:
- name: Get supported Python versions
id: get-versions
run: |
versions=$(curl -sf https://peps.python.org/api/release-cycle.json | \
jq -c '[to_entries[] | select(.value.status != "end-of-life" and .value.status != "planned") | {version: .key, branch: (.value.branch // .key), python_version: (if .key == "3.10" then "3.12" else "3" end)}]')
echo "versions=$versions" >> "$GITHUB_OUTPUT"
build:
needs: get-versions
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.get-versions.outputs.versions) }}
uses: ./.github/workflows/build.yaml
with:
reference: ${{ matrix.branch }}
dist_version: ${{ matrix.version }}
python_version: ${{ matrix.python_version }}
publish: ${{ 'true' }}