Skip to content

Commit 3398d23

Browse files
GHA-188 Fix check-releasability skipped when freeze-branch is disabled (#96)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 00d1860 commit 3398d23

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/automated-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ jobs:
171171
# Running this check early prevents unnecessary work (like creating REL tickets) if the release cannot proceed.
172172
check-releasability:
173173
name: Check Releasability
174-
if: ${{ inputs.check-releasability && !cancelled() }}
174+
if: |
175+
inputs.check-releasability &&
176+
!cancelled() &&
177+
(needs.freeze-branch.result == 'success' || needs.freeze-branch.result == 'skipped')
175178
needs: [ freeze-branch ]
176179
runs-on: ${{ inputs.runner-environment }}
177180
permissions:
@@ -240,10 +243,9 @@ jobs:
240243
# These outputs include the release version, Jira version name, release notes, Jira release notes, and Jira release URL.
241244
prepare-release:
242245
name: Prepare Release
243-
needs: [ freeze-branch, check-releasability ]
246+
needs: [ check-releasability ]
244247
if: |
245248
!cancelled() &&
246-
(needs.freeze-branch.result == 'success' || needs.freeze-branch.result == 'skipped') &&
247249
(needs.check-releasability.result == 'success' || needs.check-releasability.result == 'skipped')
248250
runs-on: ${{ inputs.runner-environment }}
249251
permissions:

0 commit comments

Comments
 (0)