From ff5f2a01d303548f9267a83a05a1aedc9072688f Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Mon, 24 Nov 2025 09:29:56 -0800 Subject: [PATCH] Fix link checks on main --- .github/workflows/reusable-link-check.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable-link-check.yml b/.github/workflows/reusable-link-check.yml index 75d4ebeeda18..0355270e48e4 100644 --- a/.github/workflows/reusable-link-check.yml +++ b/.github/workflows/reusable-link-check.yml @@ -16,13 +16,16 @@ jobs: - uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1 - - name: Link check - relative links (all files) + - name: Link check for pull requests if: github.event_name == 'pull_request' env: GITHUB_TOKEN: ${{ github.token }} - run: mise run lint:local-links + run: | + mise run lint:local-links + mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event pull_request - - name: Link check (modified files only) + - name: Link check for pushes and scheduled workflows + if: github.event_name != 'pull_request' env: GITHUB_TOKEN: ${{ github.token }} - run: mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event ${{ github.event_name }} + run: mise run lint:links