Przeglądaj źródła

Merge pull request #484 from loopandlearn/fix/validate_secrets

fix validate_secrets regression, detect and annotate errors
Marion Barker 8 miesięcy temu
rodzic
commit
30c80bea3a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      .github/workflows/validate_secrets.yml

+ 2 - 2
.github/workflows/validate_secrets.yml

@@ -168,8 +168,8 @@ jobs:
           elif ! echo "$FASTLANE_KEY" | openssl pkcs8 -nocrypt >/dev/null; then
             failed=true
             echo "::error::The FASTLANE_KEY secret is set but invalid. Verify that you copied it correctly from the API Key file (*.p8) you downloaded and try again."
-          elif ! (bundle exec fastlane validate_secrets 2>&1 || true) | tee fastlane.log; then # ignore "fastlane validate_secrets" errors and continue on errors without annotating an exit code
-            if grep -q "bad decrypt" fastlane.log; then
+          elif ! bundle exec fastlane validate_secrets 2>&1 | tee fastlane.log; then
+            if grep -q "Couldn't decrypt the repo" fastlane.log; then
               failed=true
               echo "::error::Unable to decrypt the Match-Secrets repository using the MATCH_PASSWORD secret. Verify that it is set correctly and try again."
             elif grep -q -e "required agreement" -e "license agreement" fastlane.log; then