From f9ad45439e8b6167e2f8bc1d2ac0409981619ab3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:04:14 +0000 Subject: [PATCH] Refine scheduled release failure annotations --- .github/workflows/scheduled-build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scheduled-build.yml b/.github/workflows/scheduled-build.yml index 7df80a0..61a4309 100644 --- a/.github/workflows/scheduled-build.yml +++ b/.github/workflows/scheduled-build.yml @@ -153,10 +153,12 @@ jobs: set -e 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." else - echo "${GH_RELEASE_OUTPUT}" >&2 + echo "::error::${GH_RELEASE_OUTPUT}" exit ${GH_RELEASE_EXIT_CODE} fi else