Skip to content

Commit

Permalink
ci: fix link-check step
Browse files Browse the repository at this point in the history
  • Loading branch information
SKalt committed Jan 28, 2025
1 parent 7df2152 commit 11b9e99
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ env:
jobs:
build:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
issues: write # required for peter-evans/create-issue-from-file
steps:
- uses: actions/checkout@v3
- name: Build
Expand All @@ -26,15 +30,26 @@ jobs:
- name: build docs
run: cargo doc

- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.9.0
uses: lycheeverse/lychee-action@v2
with:
args: --base . --verbose --no-progress --exclude=./target/package
args: --base . --verbose --no-progress --cache --max-cache-age 1d --exclude=./target/package .
fail: false
format: markdown
output: ./lychee/out.md
jobSummary: true

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
Expand Down

0 comments on commit 11b9e99

Please sign in to comment.