wip! workflows as programs prototyping #53
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: Sync RTD redirects | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- doc/redirects.yaml | |
- .github/workflows/sync-rtd-redirects.yaml | |
# The reusable workflow will only actually make changes when running on the | |
# default branch (e.g. refs/heads/main); every other run will be a dry run. | |
pull_request: | |
# Manually triggered using GitHub's UI | |
workflow_dispatch: | |
jobs: | |
sync: | |
name: rtd redirects | |
uses: nextstrain/.github/.github/workflows/sync-rtd-redirects.yaml@master | |
with: | |
project: nextstrain-cli | |
file: doc/redirects.yaml | |
secrets: | |
RTD_TOKEN: ${{ secrets.RTD_TOKEN }} |