From a099c5c3d74f23e3e81d15f1e0f610f4c44310c2 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 22 Feb 2024 16:52:14 -0800 Subject: [PATCH] always resolve commit sha --- .github/workflows/release_prep_hatch.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release_prep_hatch.yml b/.github/workflows/release_prep_hatch.yml index afa9bf07..a67f58b0 100644 --- a/.github/workflows/release_prep_hatch.yml +++ b/.github/workflows/release_prep_hatch.yml @@ -514,14 +514,7 @@ jobs: - name: "Resolve Commit SHA For Release" id: resolve_commit_sha run: | - commit_sha="" - if [[ ${{ needs.audit-changelog.outputs.exists }} == false ]] || [[ ${{ needs.audit-version-in-code.outputs.up_to_date }} == false ]] - then - commit_sha=$(git rev-parse HEAD) - else - commit_sha=${{ inputs.sha }} - fi - echo "release_sha=$commit_sha" >> $GITHUB_OUTPUT + echo "release_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT - name: "Remove Temp Branch - ${{ needs.create-temp-branch.outputs.branch_name }}" if: ${{ inputs.deploy_to == 'prod' && inputs.nightly_release == 'false' && needs.create-temp-branch.outputs.branch_name != '' }}