Skip to content

Commit

Permalink
TMP: Test readthedocs-cli@add-user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
joverlee521 committed Nov 27, 2024
1 parent a6d0a87 commit 6240992
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/sync-redirects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,28 @@ on:

jobs:
sync:
name: rtd redirects
uses: nextstrain/.github/.github/workflows/sync-rtd-redirects.yaml@master
with:
project: nextstrain
file: redirects.yml
secrets:
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- name: Upgrade Python toolchain
run: python3 -m pip install --upgrade pip setuptools wheel

- name: Install readthedocs-cli
run: python3 -m pip install git+https://github.com/nextstrain/readthedocs-cli.git@add-user-agent

- name: Sync redirects (DRY RUN)
run: rtd projects nextstrain redirects sync -f "redirects.yml" --dry-run
env:
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}

# jobs:
# sync:
# name: rtd redirects
# uses: nextstrain/.github/.github/workflows/sync-rtd-redirects.yaml@master
# with:
# project: nextstrain
# file: redirects.yml
# secrets:
# RTD_TOKEN: ${{ secrets.RTD_TOKEN }}

0 comments on commit 6240992

Please sign in to comment.