Skip to content

Commit

Permalink
dedicated workflow for links-check (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison authored Feb 17, 2024
1 parent afd399d commit ee546eb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- if: runner.os == 'Linux'
name: Check markdown links
uses: gaurav-nelson/github-action-markdown-link-check@v1

- run: go mod download && go mod tidy && go mod verify
- run: git --no-pager diff --exit-code

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: detect-broken-links
on:
push:
pull_request:

permissions:
contents: read

jobs:
check-links:
name: check-links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: '.github/workflows/mlc_config.json'
7 changes: 7 additions & 0 deletions .github/workflows/mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignorePatterns": [
{
"pattern": "^https://stackoverflow.com/questions/33987316/what-is-a-complex-mapping-key-in-yaml"
}
]
}

0 comments on commit ee546eb

Please sign in to comment.