From 6240992a59240886531911d4e87fea2678c30950 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Wed, 27 Nov 2024 13:40:57 -0800 Subject: [PATCH] TMP: Test readthedocs-cli@add-user-agent --- .github/workflows/sync-redirects.yaml | 32 +++++++++++++++++++++------ 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sync-redirects.yaml b/.github/workflows/sync-redirects.yaml index 80a568ba..a7188609 100644 --- a/.github/workflows/sync-redirects.yaml +++ b/.github/workflows/sync-redirects.yaml @@ -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 }}