From 638be75abb6f605809657ee4e4be4540b290e6aa Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Fri, 14 Nov 2025 10:44:17 +0000 Subject: [PATCH] [release-12.3.1] CI: Fix release-build bug; github.repository includes org (#113912) CI: Fix release-build bug; github.repository includes org (#113909) * CI: Fix release-build bug; github.repository includes org * set pipefail * fix notify in release-build; this step should fail if it actually fails (cherry picked from commit 9376d569cc5505a7be36627a3019de293a221a42) Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com> --- .github/workflows/release-build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 8eae122a6c5..aa5c6363385 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -326,7 +326,10 @@ jobs: GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} GRAFANA_COMMIT: ${{ needs.setup.outputs.grafana-commit }} REPO: ${{ github.repository }} - run: echo "ISSUE_NUMBER=$(gh api "/repos/grafana/${REPO}/commits/${GRAFANA_COMMIT}/pulls" | jq -r '.[0].number')" >> "$GITHUB_ENV" + run: + set -eo pipefail + gh api "/repos/${REPO}/commits/${GRAFANA_COMMIT}/pulls" | jq -r '.[0].number' | tee issue_number.txt + echo "ISSUE_NUMBER=$(cat issue_number.txt)" >> "$GITHUB_ENV" - name: Find Comment uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3 if: ${{ steps.find-pr.outcome == 'success' }}