diff --git a/.github/workflows/release-request.yml b/.github/workflows/release-request.yml index 64f6a29..3a50cdd 100644 --- a/.github/workflows/release-request.yml +++ b/.github/workflows/release-request.yml @@ -76,15 +76,11 @@ jobs: - name: Get Release Status if: ${{ env.STOP_JOB != 'true' }} run: | - response_status=404 - curl --fail-with-body -L \ - -X GET \ + response_status=$(curl --fail-with-body -I -L -s -o /dev/null -w "%{http_code}" \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/${{ github.repository }}/releases/tags/"$RELEASE_TAG" \ - > /dev/null \ - || response_status=$? + https://api.github.com/repos/${{ github.repository }}/releases/tags/"$RELEASE_TAG") if [ "$response_status" -ne 404 ] ; then if [ "$response_status" -eq 200 ] ; then