From 5740cacd0723cbece850023f1678f6828cf606a0 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Mon, 24 Nov 2025 11:34:47 -0800 Subject: [PATCH] Fix link checks on main https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/runs/19641848122/job/56247114893 --- .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 599734a861..8debec186d 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