Skip to content

Commit

Permalink
fix release branch logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed May 14, 2024
1 parent 45a024a commit 9cde4cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release_prep_hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ jobs:
- release-inputs
if: |
!failure() && !cancelled() &&
needs.release-branch.outputs.name != '' &&
needs.release-branch.result == 'success' &&
inputs.deploy-to == 'prod'
steps:
Expand Down Expand Up @@ -442,11 +442,11 @@ jobs:
steps:
- name: "Set release branch"
id: branch
# If a release branch was created and not merged, use the release branch
# Otherwise, use the input branch because either nothing was done, or the changes were merged back in
run: |
branch=""
if [ ${{ inputs.deploy-to == 'test' }} ] || [ ${{ inputs.is-nightly-release == 'true' }} ]
then
branch=${{ needs.release-branch.outputs.name }}
if [ ${{ needs.release-branch.result == 'success' }} && ${{ needs.merge-release-branch.result == 'skipped' }} ]; then
branch="${{ needs.release-branch.outputs.name }}"
else
branch="${{ inputs.branch }}"
fi
Expand Down

0 comments on commit 9cde4cf

Please sign in to comment.