File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 id : set_output
6060 run : |
6161 CERT_STATUS_FILE="${{ github.workspace }}/fastlane/new_certificate_needed.txt"
62- ENABLE_NUKE_CERTS=${{ vars.ENABLE_NUKE_CERTS }}
62+ # Convert to lowercase for case-insensitive comparison
63+ ENABLE_NUKE_CERTS=$(echo "${{ vars.ENABLE_NUKE_CERTS }}" | tr '[:upper:]' '[:lower:]')
64+ FORCE_NUKE_CERTS=$(echo "${{ vars.FORCE_NUKE_CERTS }}" | tr '[:upper:]' '[:lower:]')
6365
6466 if [ -f "$CERT_STATUS_FILE" ]; then
6567 CERT_STATUS=$(cat "$CERT_STATUS_FILE" | tr -d '\n' | tr -d '\r') # Read file content and strip newlines
8183 exit 1
8284 fi
8385
84- # Check if vars. FORCE_NUKE_CERTS is not set to true
85- if [ vars. FORCE_NUKE_CERTS = "true" ]; then
86+ # Check if FORCE_NUKE_CERTS is set to true
87+ if [ "$ FORCE_NUKE_CERTS" = "true" ]; then
8688 echo "::warning::‼️ Nuking of certificates was forced because the repository variable FORCE_NUKE_CERTS is set to 'true'."
8789 fi
8890
You can’t perform that action at this time.
0 commit comments