Skip to content

Commit

Permalink
Fix link checker (#16)
Browse files Browse the repository at this point in the history
* Fix mardown link check

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use lychee link checker

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez authored Aug 16, 2023
1 parent e752355 commit b2bc58f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/markdown.yml → .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ env:
CARGO_TERM_COLOR: always

jobs:
lint:
linkCheck:
name: "Lint"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 2

Expand All @@ -31,6 +31,15 @@ jobs:
*.md
*.markdown
- name: Link Markdown
uses: gaurav-nelson/github-action-markdown-link-check@v1
if: steps.changed-files-specific.outputs.only_changed == 'true'
- name: Restore lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Link Checker
uses: lycheeverse/lychee-action@v1.8.0
with:
args: "--verbose --cache --max-cache-age 1d ."
fail: true

0 comments on commit b2bc58f

Please sign in to comment.