Skip to content

Commit acc958a

Browse files
committed
Don't block non-main pushes on linkcheck
Signed-off-by: William Woodruff <william@yossarian.net>
1 parent 2cf10f9 commit acc958a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ jobs:
3535
- false
3636
include:
3737
- noxenv: linkcheck
38-
continue-on-error: >- # Don't block PRs on linkcheck unrelated failures
39-
${{ toJSON(github.event_name == 'pull_request' || github.event_name == 'merge_group') }}
38+
# Don't block PRs, merge groups, or non-main pushes on unrelated linkcheck failures.
39+
continue-on-error: >-
40+
${{ toJSON(github.event_name == 'pull_request' || github.event_name == 'merge_group' ||
41+
(github.event_name == 'push' && github.ref != 'refs/heads/main')) }}
4042
4143
steps:
4244
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

0 commit comments

Comments
 (0)