Skip to content

Commit

Permalink
Split make linkcheck out into a distinct job [#106]
Browse files Browse the repository at this point in the history
  • Loading branch information
genehack committed Sep 3, 2024
1 parent 654db55 commit 4d7062b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/docs-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ on:
type: string
default: html

permissions:
pull-requests: write
env:
# Used for `make` steps.
# -n: warn on missing references
Expand Down Expand Up @@ -68,9 +70,6 @@ jobs:
- run: make ${{ inputs.make-target }}
working-directory: ${{ inputs.docs-directory }}

- run: make linkcheck
working-directory: ${{ inputs.docs-directory }}

build-pip:
if: inputs.pip-install-target != ''
runs-on: ubuntu-latest
Expand All @@ -86,5 +85,16 @@ jobs:
- run: make ${{ inputs.make-target }}
working-directory: ${{ inputs.docs-directory }}

- run: make linkcheck
linkcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repo }}

- run: pip install '${{ inputs.pip-install-target }}'

- id: linkcheck
run: make linkcheck
working-directory: ${{ inputs.docs-directory }}
continue-on-error: true

0 comments on commit 4d7062b

Please sign in to comment.