From 1ec8d96c4f9e46e8527671657fb03b47eedc8d1c Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 8 Jul 2025 11:07:16 -0700 Subject: [PATCH] Refine link check --- .github/workflows/build.yml | 5 ++++- .github/workflows/reusable-link-check.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50a3ad0f0..260b56660 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -122,10 +122,13 @@ jobs: path: jmx-metrics/build/reports/tests/integrationTest link-check: + # merge group and push events are excluded to avoid unnecessary CI failures + # (these failures will instead be captured by the daily scheduled run) + # # release branches are excluded to avoid unnecessary maintenance if external links break # (and also because the README.md might need update on release branches before the release # download has been published) - if: "!startsWith(github.ref_name, 'release/')" + if: github.event_name != 'merge_group' && github.event_name != 'push' && !startsWith(github.ref_name, 'release/') uses: ./.github/workflows/reusable-link-check.yml markdown-lint-check: diff --git a/.github/workflows/reusable-link-check.yml b/.github/workflows/reusable-link-check.yml index 4392808d1..6e45185c7 100644 --- a/.github/workflows/reusable-link-check.yml +++ b/.github/workflows/reusable-link-check.yml @@ -39,7 +39,7 @@ jobs: run: ./.github/scripts/link-check.sh ${{ steps.modified-files.outputs.files }} - name: Link check - all links (all files) - if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' + if: github.event_name != 'pull_request' env: GITHUB_TOKEN: ${{ github.token }} run: ./.github/scripts/link-check.sh