From 253800dcd09937331d976691a6ac59438a44c509 Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Wed, 11 Jun 2025 21:30:44 -0700 Subject: [PATCH] ci: Report ios build's exit code more accurately The script was always returning `exit 1` due to poor writing... (my fault). The error code should report accurately now. --- .github/workflows/ios.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 90eadef..c16eee2 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -40,7 +40,10 @@ jobs: echo $SECRETS_TAR_GZ_B64 | base64 -d | tar -xz -C fastlane # open secrets | remove blanks | grab values |strip quotes| add the mask command | redact from GitHub Actions logs cat fastlane/.env | grep -v '^\s*$' | cut -d "=" -f 2 | tr -d '"' | awk '{print "::add-mask::"$0}' | xargs -n1 echo - bundle exec fastlane ios build || cat ${{ env.FASTLANE_LOG_PATH }} && exit 1 + bundle exec fastlane ios build + result=$? + cat ${{ env.FASTLANE_LOG_PATH }} + exit $? env: SECRETS_TAR_GZ_B64: ${{ secrets.SECRETS_TAR_GZ_B64 }} MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} -- 2.51.2