Refine scheduled release failure annotations

This commit is contained in:
copilot-swe-agent[bot]
2026-06-02 10:09:00 -07:00
committed by Jeshua Ben Joseph
parent 9ff063bf6d
commit f9ad45439e
+4 -2
View File
@@ -153,10 +153,12 @@ jobs:
set -e set -e
if [ "${GH_RELEASE_EXIT_CODE}" -ne 0 ]; 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 if [ "${GH_RELEASE_EXIT_CODE}" -eq 4 ]; then
echo "::warning::Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases."
elif 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." echo "::warning::Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases."
else else
echo "${GH_RELEASE_OUTPUT}" >&2 echo "::error::${GH_RELEASE_OUTPUT}"
exit ${GH_RELEASE_EXIT_CODE} exit ${GH_RELEASE_EXIT_CODE}
fi fi
else else