Skip to content

Commit 683a447

Browse files
authored
Fix link checks on main (#7867)
1 parent d576453 commit 683a447

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@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.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)