You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check if ENABLE_NUKE_CERTS is not set to true when certs are valid
75
-
# Note: ${VAR,,} is bash syntax for lowercase conversion, ensuring case-insensitive comparison
76
-
if [ "$CERT_STATUS" != "true" ] && [ "${ENABLE_NUKE_CERTS,,}" != "true" ]; then
76
+
if [ "$CERT_STATUS" != "true" ] && [ "$ENABLE_NUKE_CERTS" != "true" ]; then
77
77
echo "::notice::🔔 Automated renewal of certificates is disabled because the repository variable ENABLE_NUKE_CERTS is not set to 'true'."
78
78
fi
79
79
80
80
# Check if ENABLE_NUKE_CERTS is not set to true when certs are not valid
81
-
if [ "$CERT_STATUS" = "true" ] && [ "${ENABLE_NUKE_CERTS,,}" != "true" ]; then
81
+
if [ "$CERT_STATUS" = "true" ] && [ "$ENABLE_NUKE_CERTS" != "true" ]; then
82
82
echo "::error::❌ No valid distribution certificate found. Automated renewal of certificates was skipped because the repository variable ENABLE_NUKE_CERTS is not set to 'true'."
83
83
exit 1
84
84
fi
85
85
86
86
# Check if FORCE_NUKE_CERTS is set to true
87
-
if [ "${FORCE_NUKE_CERTS,,}" = "true" ]; then
87
+
if [ "$FORCE_NUKE_CERTS" = "true" ]; then
88
88
echo "::warning::‼️ Nuking of certificates was forced because the repository variable FORCE_NUKE_CERTS is set to 'true'."
0 commit comments