From 8c62c0e6a934fecf2194901363ad8c1f5a0f2af3 Mon Sep 17 00:00:00 2001 From: Lukas Sismis Date: Fri, 31 Jul 2026 16:11:35 +0200 Subject: [PATCH] github-ci: fail the prep stage when the description cannot be read Previously, on request failure, the prep stage fall-backed to the default upstream branches of SV/SU due to not finding the PR body in the error message. This commit changes the behavior to fail the prep stage when the description cannot be read. --- .github/workflows/prepare-deps.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare-deps.yml b/.github/workflows/prepare-deps.yml index bc88cc7dc9..6c04a019f5 100644 --- a/.github/workflows/prepare-deps.yml +++ b/.github/workflows/prepare-deps.yml @@ -26,8 +26,11 @@ jobs: # Authenticating moves the limit to 1000+ requests/hour per repo. GH_TOKEN: ${{ github.token }} run: | + set -eo pipefail if test "${PR_HREF}"; then - body=$(curl -s --header "Authorization: Bearer ${GH_TOKEN}" "${PR_HREF}" | jq -r .body | tr -d '\r') + body=$(curl --silent --show-error --fail \ + --header "Authorization: Bearer ${GH_TOKEN}" \ + "${PR_HREF}" | jq -r '.body' | tr -d '\r') echo "Parsing branch and PR info from:" echo "${body}"