From d215f576b3afa6785b507e74e698c6a068bf78e0 Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Thu, 6 Jun 2024 14:10:49 -0500 Subject: [PATCH] chore: collect info on error --- .github/workflows/ctcOpen.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ctcOpen.yml b/.github/workflows/ctcOpen.yml index a4a7370..a81c4cc 100644 --- a/.github/workflows/ctcOpen.yml +++ b/.github/workflows/ctcOpen.yml @@ -24,7 +24,11 @@ jobs: id: ctc shell: bash run: | + # Temp disable exit on error + set +e CTC_RESULT=$(sfchangecase create --location ${{github.repositoryUrl}} --release ${{github.repository}}.$(date +%F) --json) + # Re-enable exit on error + set -e STATUS=$(printf '%s' "$CTC_RESULT" | jq -r '.status') CTC_ID=$(printf '%s' "$CTC_RESULT" | jq -r '.result.id')