From 0e537c75e00a1c36c5d7d910e908129ae5ed2441 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Tue, 9 Jul 2024 20:14:03 -0600 Subject: [PATCH] Check HTTP status of gh api curls --- .github/workflows/trigger-merge-checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/trigger-merge-checks.yml b/.github/workflows/trigger-merge-checks.yml index 1e5e9d9d61..2f155f01b7 100644 --- a/.github/workflows/trigger-merge-checks.yml +++ b/.github/workflows/trigger-merge-checks.yml @@ -13,7 +13,7 @@ jobs: - name: Run merge-checks workflow if: ${{ contains(github.event.*.labels.*.name, 'design-approved') }} run: | - curl -L \ + curl -sSL --fail-with-body \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $GITHUB_TOKEN" \ @@ -23,7 +23,7 @@ jobs: - name: Update merge-checks workflow run if: ${{ !contains(github.event.*.labels.*.name, 'design-approved') }} run: | - if curl -L \ + if curl -sSL --fail-with-body \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $GITHUB_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ @@ -31,7 +31,7 @@ jobs: | jq -e '.check_runs.[] | select(.name == "Design Approved Check")' >/dev/null then # The "design approved" check has previously run on this commit, so we need to reexecute it - curl -L \ + curl -sSL --fail-with-body \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $GITHUB_TOKEN" \