Skip to content

Commit eecb269

Browse files
authored
ci: update link checker based on osv-scanner setup (#4038)
This is the same setup we're using in `osv-scanner` Resolves #4037
1 parent 621cc3c commit eecb269

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

.github/workflows/link-checker-on-push.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/links.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check markdown links
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.md"
7+
pull_request:
8+
paths:
9+
- "**.md"
10+
schedule:
11+
- cron: "30 22 * * 1,4"
12+
13+
# Restrict jobs in this workflow to have no permissions by default; permissions
14+
# should be granted per job as needed using a dedicated `permissions` block
15+
permissions: {}
16+
17+
jobs:
18+
check:
19+
permissions:
20+
contents: read # to fetch code (actions/checkout)
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+
- uses: tcort/github-action-markdown-link-check@a800ad5f1c35bf61987946fd31c15726a1c9f2ba # v1.1.0
25+
with:
26+
use-quiet-mode: "yes"
27+
base-branch: "master"
28+
check-modified-files-only: ${{ github.event_name == 'schedule' && 'yes' || 'no'}}

0 commit comments

Comments
 (0)