Skip to content

Commit

Permalink
remove extra troubleshooting steps, fix syntax in bash conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed May 23, 2024
1 parent 5da1420 commit f6a3bd8
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/release_prep_hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,27 +161,6 @@ jobs:
message="A changelog already exists at ${{ steps.changelog.outputs.path }}, skipping generating changelog"
echo "::notice title=${{ env.NOTIFICATION_PREFIX }}: $title::$message"
- name: "[INFO] Perform changelog generation"
if: steps.changelog.outputs.exists == 'false'
run: |
title="Perform changelog generation"
message="A changelog does not exist at ${{ steps.changelog.outputs.path }}, this process will generate a changelog"
echo "::notice title=${{ env.NOTIFICATION_PREFIX }}: $title::$message"
- name: "[INFO] Skip changelog generation"
if: steps.changelog.outputs.exists == true
run: |
title="Skip changelog generation"
message="A changelog already exists at ${{ steps.changelog.outputs.path }}, skipping generating changelog"
echo "::notice title=${{ env.NOTIFICATION_PREFIX }}: $title::$message"
- name: "[INFO] Perform changelog generation"
if: steps.changelog.outputs.exists == false
run: |
title="Perform changelog generation"
message="A changelog does not exist at ${{ steps.changelog.outputs.path }}, this process will generate a changelog"
echo "::notice title=${{ env.NOTIFICATION_PREFIX }}: $title::$message"
release-branch:
runs-on: ubuntu-latest
needs: release-inputs
Expand Down Expand Up @@ -468,7 +447,7 @@ jobs:
# 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: |
if [ ${{ needs.release-branch.result == 'success' }} && ${{ needs.merge-release-branch.result == 'skipped' }} ]; then
if [[ ${{ needs.release-branch.result == 'success' }} && ${{ needs.merge-release-branch.result == 'skipped' }} ]]; then
branch="${{ needs.release-branch.outputs.name }}"
else
branch="${{ inputs.branch }}"
Expand Down

0 comments on commit f6a3bd8

Please sign in to comment.