diff --git a/.github/workflows/scheduled-build.yml b/.github/workflows/scheduled-build.yml index 12cfff7..50dfa13 100644 --- a/.github/workflows/scheduled-build.yml +++ b/.github/workflows/scheduled-build.yml @@ -152,8 +152,8 @@ jobs: GH_RELEASE_EXIT_CODE=$? set -e - if [ ${GH_RELEASE_EXIT_CODE} -ne 0 ]; then - if echo "${GH_RELEASE_OUTPUT}" | grep -Eq "HTTP 403|Resource not accessible by integration"; then + if [ "${GH_RELEASE_EXIT_CODE}" -ne 0 ]; then + if [ "${GH_RELEASE_EXIT_CODE}" -eq 4 ] || echo "${GH_RELEASE_OUTPUT}" | grep -Eq "HTTP 403|Resource not accessible by integration"; then echo "::warning::Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases." else echo "${GH_RELEASE_OUTPUT}" >&2