Skip to content

Commit 9738270

Browse files
authored
link check small refactoring (#2006)
1 parent 65179dc commit 9738270

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,13 @@ jobs:
122122
path: jmx-metrics/build/reports/tests/integrationTest
123123

124124
link-check:
125+
# merge group and push events are excluded to avoid unnecessary CI failures
126+
# (these failures will instead be captured by the daily scheduled run)
127+
#
125128
# release branches are excluded to avoid unnecessary maintenance if external links break
126129
# (and also because the README.md might need update on release branches before the release
127130
# download has been published)
128-
if: "!startsWith(github.ref_name, 'release/')"
131+
if: github.event_name != 'merge_group' && github.event_name != 'push' && !startsWith(github.ref_name, 'release/')
129132
uses: ./.github/workflows/reusable-link-check.yml
130133

131134
markdown-lint-check:

.github/workflows/reusable-link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: ./.github/scripts/link-check.sh ${{ steps.modified-files.outputs.files }}
4040

4141
- name: Link check - all links (all files)
42-
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
42+
if: github.event_name != 'pull_request'
4343
env:
4444
GITHUB_TOKEN: ${{ github.token }}
4545
run: ./.github/scripts/link-check.sh

0 commit comments

Comments
 (0)