From ce8b4be6d812277fb9910074d1b818763104279f Mon Sep 17 00:00:00 2001 From: Eva <1017762+eshon@users.noreply.github.com> Date: Fri, 15 Aug 2025 19:31:56 +0200 Subject: [PATCH] Running linkchecker on top of latest main instead of an old fork --- .github/workflows/check-external-links.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-external-links.yml b/.github/workflows/check-external-links.yml index 30d07a60a..4246d00c9 100644 --- a/.github/workflows/check-external-links.yml +++ b/.github/workflows/check-external-links.yml @@ -8,7 +8,13 @@ jobs: linkChecker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code (merge of PR + base) + uses: actions/checkout@v4 + with: + # For pull_request events, this is the "virtual" merge commit + # If the PR can't be merged (conflicts), this ref won't exist. + ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }} + fetch-depth: 0 - name: Link Checker id: lychee