aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/check-links.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/check-links.yaml')
-rw-r--r--.github/workflows/check-links.yaml30
1 files changed, 17 insertions, 13 deletions
diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml
index ea20952..279c312 100644
--- a/.github/workflows/check-links.yaml
+++ b/.github/workflows/check-links.yaml
@@ -9,30 +9,34 @@ on:
jobs:
lychee:
runs-on: ubuntu-latest
+ permissions:
+ issues: write
steps:
- uses: actions/checkout@v4
- - uses: DeterminateSystems/nix-installer-action@main
- - uses: DeterminateSystems/magic-nix-cache-action@main
+ - uses: DeterminateSystems/nix-installer-action@v16
+ - uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build the site
run: nix build --print-build-logs
- name: Restore lychee cache
- uses: actions/cache@v3
+ uses: actions/cache/restore@v4
with:
path: .lycheecache
- key: cache-lychee-${{ hashFiles('**/*.md') }}
- restore-keys: cache-lychee-
+ key: lychee-cache
- name: Check links
id: lychee
- uses: lycheeverse/lychee-action@v1
+ uses: lycheeverse/lychee-action@v2
with:
- args: --verbose --no-progress './result/**/*.html'
- output: ./lycheeresult.md
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ fail: false
+ - name: Save lychee cache
+ uses: actions/cache/save@v4
+ if: always()
+ with:
+ key: lychee-cache
+ path: .lycheecache
- name: Create issue
- if: ${{ github.event_name != 'pull_request' && 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: "[lychee] Broken links"
- content-filepath: ./lycheeresult.md
+ content-filepath: ./lychee/out.md
labels: bug, automated issue