From c584628748bb9dc26d19f9214595dd9e35d2bd4b Mon Sep 17 00:00:00 2001 From: bjornoleh Date: Thu, 9 Jan 2025 15:33:13 +0100 Subject: [PATCH] Output if Nuke skipped due to != true --- .github/workflows/check_certs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/check_certs.yml b/.github/workflows/check_certs.yml index 0b1b3a53c..4fa86ad6a 100644 --- a/.github/workflows/check_certs.yml +++ b/.github/workflows/check_certs.yml @@ -40,6 +40,8 @@ jobs: id: set_output run: | CERT_STATUS_FILE="${{ github.workspace }}/fastlane/new_certificate_needed.txt" + ENABLE_NUKE_CERTS=${{ vars.ENABLE_NUKE_CERTS }} + if [ -f "$CERT_STATUS_FILE" ]; then CERT_STATUS=$(cat "$CERT_STATUS_FILE" | tr -d '\n' | tr -d '\r') # Read file content and strip newlines echo "new_certificate_needed: $CERT_STATUS" @@ -48,6 +50,11 @@ jobs: echo "Certificate status file not found. Defaulting to false." echo "new_certificate_needed=false" >> $GITHUB_OUTPUT fi + + # Check if ENABLE_NUKE_CERTS is not set to true + if [ "$CERT_STATUS" = "true" ] && [ "$ENABLE_NUKE_CERTS" != "true" ]; then + echo "::notice::🔔 Nuke certificates was skipped because the repository variable ENABLE_NUKE_CERTS is not set to 'true'." + fi # Nuke Certs if needed, and if the repository variable ENABLE_NUKE_CERTS is set to 'true' (without quotes) nuke_certs: