From 1b42e4a722057445176a8f59d72433a0da04e9f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:06:28 +0000 Subject: [PATCH] Improve release warning diagnostics in scheduled build --- .github/workflows/scheduled-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scheduled-build.yml b/.github/workflows/scheduled-build.yml index 29ad109..0a37c13 100644 --- a/.github/workflows/scheduled-build.yml +++ b/.github/workflows/scheduled-build.yml @@ -155,12 +155,12 @@ jobs: if [ "${GH_RELEASE_EXIT_CODE}" -ne 0 ]; then RELEASE_PERMISSION_WARNING="Skipping GitHub release creation for ${{ steps.release.outputs.next_tag }} because the workflow token cannot create releases." IS_PERMISSION_DENIED=false - 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 ] || (echo "${GH_RELEASE_OUTPUT}" | grep -Eqi "HTTP 403|Resource not accessible by integration|permission|denied"); then IS_PERMISSION_DENIED=true fi if [ "${IS_PERMISSION_DENIED}" = "true" ]; then - echo "::warning::${RELEASE_PERMISSION_WARNING}" + echo "::warning::${RELEASE_PERMISSION_WARNING}. gh output: ${GH_RELEASE_OUTPUT}" else echo "::error::${GH_RELEASE_OUTPUT}" exit ${GH_RELEASE_EXIT_CODE}