Skip to content

Commit

Permalink
Update markdown links workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcransome committed Jul 16, 2024
1 parent 80d1c57 commit a945b9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
7 changes: 0 additions & 7 deletions .github/markdown/markdown-links.json

This file was deleted.

31 changes: 10 additions & 21 deletions .github/workflows/markdown-links.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,30 @@
name: Markdown links check
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
schedule:
- cron: '0 18 * * 1'
workflow_dispatch:

permissions: read-all

jobs:
markdown-links:
name: Markdown links check
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Harden runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Check links in modified Markdown files
if: github.event_name == 'pull_request'
uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # 1.0.15
with:
base-branch: main
check-modified-files-only: yes
use-verbose-mode: yes
config-file: .github/markdown/markdown-links.json
- name: Check links in all Markdown files
if: github.event_name != 'pull_request'
uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # 1.0.15
uses: umbrelladocs/action-linkspector@edd00b453149a11ab419183d1e8e46159e609ec0 # v1.1.3
with:
use-verbose-mode: yes
config-file: .github/markdown/markdown-links.json
fail_on_error: true
filter_mode: file
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review

0 comments on commit a945b9c

Please sign in to comment.