Skip to content

Commit fafbe2c

Browse files
authored
[CI] Workaround for GHA handling of 'skipped' in job dependency chain (#5152)
2 parents 2903171 + d171023 commit fafbe2c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,10 @@ jobs:
307307
contents: write
308308
needs:
309309
- check
310-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
310+
if: >- # `always()` prevents auto-cancellation when previous steps are skipped (#5151):
311+
always()
312+
&& needs.check.result == 'success'
313+
&& github.event_name == 'push' && github.ref_type == 'tag'
311314
runs-on: ubuntu-latest
312315
timeout-minutes: 75
313316
steps:

newsfragments/5152.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix CI configuration for the ``release`` job.

0 commit comments

Comments
 (0)