From 1cf1a20feac6f2c51c2c1cd7073b35023892e155 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:05:43 +0000 Subject: [PATCH] Improve readability of release permission detection --- .github/workflows/scheduled-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/scheduled-build.yml b/.github/workflows/scheduled-build.yml index 6d691a3..29ad109 100644 --- a/.github/workflows/scheduled-build.yml +++ b/.github/workflows/scheduled-build.yml @@ -154,7 +154,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 + IS_PERMISSION_DENIED=true + fi + + if [ "${IS_PERMISSION_DENIED}" = "true" ]; then echo "::warning::${RELEASE_PERMISSION_WARNING}" else echo "::error::${GH_RELEASE_OUTPUT}"