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' }}