Skip to content

Commit

Permalink
Fail lychee as an input
Browse files Browse the repository at this point in the history
Signed-off-by: cicdguy <[email protected]>
  • Loading branch information
cicdguy authored Jun 5, 2024
1 parent 06ff0e0 commit d2b51d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ on:
required: false
type: string
default: "--exclude-private"
lychee-fail:
description: Fail workflow run on error (i.e. when lychee exit code is not 0)
required: false
type: boolean
default: false
package-subdirectory:
description: Subdirectory in the repository, where the R package is located.
required: false
Expand Down Expand Up @@ -79,7 +84,7 @@ jobs:
SKIP_INSTRUCTION: "[skip links]"

- name: Check URLs in docs 🔬
uses: lycheeverse/lychee-action@v1.8.0
uses: lycheeverse/lychee-action@v1.10.0
with:
args: >-
--exclude "https://github.com.*.git|https://insightsengineering.github.io.*|lewagon.*|knightdave.*|.*users.noreply.github.com|lycheeverse.*"
Expand All @@ -91,6 +96,7 @@ jobs:
**/*.Rmd
**/*.yaml
**/*.yml
fail: ${{ inputs.lychee-fail }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit d2b51d1

Please sign in to comment.