Skip to content

Commit

Permalink
dev: Use centralized sync-rtd-redirects workflow
Browse files Browse the repository at this point in the history
A central copy is easier to maintain over time now that this workflow is
proliferating across our repos.
  • Loading branch information
victorlin committed Nov 29, 2022
1 parent 89c1d18 commit ea90312
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/sync-redirects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,10 @@ on:

jobs:
sync:
# Prevent this job from running on forks.
if: github.repository_owner == 'nextstrain'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4

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

- name: Install readthedocs-cli
run: python3 -m pip install readthedocs-cli

- name: Sync redirects
run: rtd projects nextstrain-ncov redirects sync -f docs/redirects.yaml --wet-run
env:
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
name: rtd redirects
uses: nextstrain/.github/.github/workflows/sync-rtd-redirects.yaml@master
with:
project: nextstrain-ncov
file: docs/redirects.yaml
secrets:
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}

0 comments on commit ea90312

Please sign in to comment.