From f6a3bd84ff231d17dd49ab6a422d37a5fa04046b Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Thu, 23 May 2024 11:16:52 -0400 Subject: [PATCH] remove extra troubleshooting steps, fix syntax in bash conditional --- .github/workflows/release_prep_hatch.yml | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/release_prep_hatch.yml b/.github/workflows/release_prep_hatch.yml index abd90750..8e9ded04 100644 --- a/.github/workflows/release_prep_hatch.yml +++ b/.github/workflows/release_prep_hatch.yml @@ -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 @@ -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 }}"