Skip to content

Commit 0c5e3ad

Browse files
authored
Fix link checks on main (#15447)
1 parent c0efca7 commit 0c5e3ad

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/reusable-link-check.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ jobs:
1616

1717
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
1818

19-
- name: Link check - relative links (all files)
19+
- name: Link check for pull requests
2020
if: github.event_name == 'pull_request'
2121
env:
2222
GITHUB_TOKEN: ${{ github.token }}
23-
run: mise run lint:local-links
23+
run: |
24+
mise run lint:local-links
25+
mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event pull_request
2426
25-
- name: Link check (modified files only)
27+
- name: Link check for pushes and scheduled workflows
28+
if: github.event_name != 'pull_request'
2629
env:
2730
GITHUB_TOKEN: ${{ github.token }}
28-
run: mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event ${{ github.event_name }}
31+
run: mise run lint:links

0 commit comments

Comments
 (0)