From 4a05d78ed4b49bf1498547cac9beb5fa1dc496e7 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Tue, 27 Feb 2024 14:57:36 +0100 Subject: [PATCH] fix: don't immediately exit on errors (#5336) Don't immediately exit on errors because this will hide diagnostic information, and linter output. Fix #5335 ci: add docs updates to changelog --- .github/release-please/release-please-config.json | 4 ++++ lib/linter.sh | 2 +- scripts/linterVersions.sh | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/release-please/release-please-config.json b/.github/release-please/release-please-config.json index fa41bb99..011fb4d1 100644 --- a/.github/release-please/release-please-config.json +++ b/.github/release-please/release-please-config.json @@ -24,6 +24,10 @@ { "section": "🧰 Maintenance", "type": "ci" + }, + { + "section": "🧰 Maintenance", + "type": "docs" } ], "packages": { diff --git a/lib/linter.sh b/lib/linter.sh index 0d34e22c..20bff08c 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash -set -o errexit set -o nounset set -o pipefail @@ -658,6 +657,7 @@ UpdateLoopsForImage() { # shellcheck disable=SC2317 cleanup() { local -ri EXIT_CODE=$? + debug "Captured exit code: ${EXIT_CODE}" if [ -n "${GITHUB_WORKSPACE:-}" ]; then debug "Removing temporary files and directories" diff --git a/scripts/linterVersions.sh b/scripts/linterVersions.sh index e371fb07..a785ca06 100755 --- a/scripts/linterVersions.sh +++ b/scripts/linterVersions.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash -set -o errexit set -o nounset set -o pipefail