Merge pull request #13064 from ichard26/block-upgrade-prompt #503
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: 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 | |
environment: RTD Deploys | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- run: pip install httpx pyyaml rich | |
- run: python tools/update-rtd-redirects.py | |
env: | |
RTD_API_TOKEN: ${{ secrets.RTD_API_TOKEN }} |