Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ jobs:
repo: nextstrain/docs.nextstrain.org
docs-directory: .
environment-file: conda.yml
run-linkcheck: false

test-docs-ci-pip:
uses: ./.github/workflows/docs-ci.yaml
with:
repo: nextstrain/augur
docs-directory: docs/
pip-install-target: .[dev]
run-linkcheck: false

test-pathogen-repo-build:
permissions:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/docs-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ on:
type: string
default: html

run-linkcheck:
description: >-
Run linkcheck steps
type: boolean
default: true
required: false

env:
# Used for `make` steps.
# -n: warn on missing references
Expand Down Expand Up @@ -88,10 +95,12 @@ jobs:
working-directory: ${{ inputs.docs-directory }}

# Ignore the exit code, results will be checked in the next step
- run: make linkcheck || true
- if: inputs.run-linkcheck
run: make linkcheck || true
working-directory: ${{ inputs.docs-directory }}

- name: Check for broken links
- if: inputs.run-linkcheck
name: Check for broken links
run: |
broken_links=$(jq 'select(.status == "broken")' "$BUILDDIR/linkcheck/output.json")
if [ -n "$broken_links" ]; then
Expand Down
Loading