Skip to content

Commit 908c479

Browse files
authored
Merge pull request #2410 from eshon/main
Running linkchecker on top of latest main instead of an old fork
2 parents 4234ea3 + ce8b4be commit 908c479

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/check-external-links.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ jobs:
88
linkChecker:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- name: Checkout code (merge of PR + base)
12+
uses: actions/checkout@v4
13+
with:
14+
# For pull_request events, this is the "virtual" merge commit
15+
# If the PR can't be merged (conflicts), this ref won't exist.
16+
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }}
17+
fetch-depth: 0
1218

1319
- name: Link Checker
1420
id: lychee

0 commit comments

Comments
 (0)