2022-11-25 14:47:05 +01:00
|
|
|
name: Update documentation redirects
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
schedule:
|
|
|
|
- cron: 0 0 * * MON # Run every Monday at 00:00 UTC
|
|
|
|
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: "1"
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-rtd-redirects:
|
|
|
|
runs-on: ubuntu-latest
|
2023-01-01 12:07:34 +01:00
|
|
|
environment: RTD Deploys
|
2022-11-25 14:47:05 +01:00
|
|
|
steps:
|
2023-10-07 21:00:51 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-25 14:47:05 +01:00
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
2022-12-31 22:02:45 +01:00
|
|
|
- run: pip install httpx pyyaml rich
|
2022-11-25 14:47:05 +01:00
|
|
|
- run: python tools/update-rtd-redirects.py
|
|
|
|
env:
|
|
|
|
RTD_API_TOKEN: ${{ secrets.RTD_API_TOKEN }}
|