Skip to content

Commit 253800d

Browse files
committed
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.
1 parent ff7cf7d commit 253800d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ios.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ jobs:
4040
echo $SECRETS_TAR_GZ_B64 | base64 -d | tar -xz -C fastlane
4141
# open secrets | remove blanks | grab values |strip quotes| add the mask command | redact from GitHub Actions logs
4242
cat fastlane/.env | grep -v '^\s*$' | cut -d "=" -f 2 | tr -d '"' | awk '{print "::add-mask::"$0}' | xargs -n1 echo
43-
bundle exec fastlane ios build || cat ${{ env.FASTLANE_LOG_PATH }} && exit 1
43+
bundle exec fastlane ios build
44+
result=$?
45+
cat ${{ env.FASTLANE_LOG_PATH }}
46+
exit $?
4447
env:
4548
SECRETS_TAR_GZ_B64: ${{ secrets.SECRETS_TAR_GZ_B64 }}
4649
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}

0 commit comments

Comments
 (0)