From b3ad6fbda0b17dc378169cf1bf85e66373c52ef4 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Thu, 20 Jun 2024 11:51:55 +0000 Subject: [PATCH] jobs: Adds set -e and set -x flags to the renew_certificate job set -e tells the script to exit the script if any command returns a non-zero exit status. set -x is useful for debugging, essentially allowing us to trace the script execution. --- .github/workflows/renew_certificate.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/renew_certificate.yaml b/.github/workflows/renew_certificate.yaml index 5af89cf6..04f294ca 100644 --- a/.github/workflows/renew_certificate.yaml +++ b/.github/workflows/renew_certificate.yaml @@ -34,6 +34,8 @@ jobs: - name: Renewing Certificate run: | + set -x + set -e renew_certificate() { model=$1 juju switch "${model}"