Skip to content

Commit 567eaf5

Browse files
ci: use exit code instead of output text to detect pod trunk push success
References: ionic-team/capacitor-camera#51
1 parent 17fb2f3 commit 567eaf5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/publish-ios.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ publish_plugin_ios () {
3333
mkdir -p ./tmp
3434
# publish to Trunk
3535
printf %"s\n" "Attempting to build and publish plugin $PLUGIN_NAME for version $PLUGIN_VERSION to production..."
36-
pod trunk push $PODSPEC_FILE_PATH --allow-warnings > $LOG_OUTPUT 2>&1
37-
if grep -q "passed" $LOG_OUTPUT; then
36+
if pod trunk push $PODSPEC_FILE_PATH --allow-warnings > $LOG_OUTPUT 2>&1; then
3837
printf %"s\n\n" "Success: $PLUGIN_NAME published to CocoaPods Trunk."
3938
else
4039
printf %"s\n\n" "Error publishing $PLUGIN_NAME, check $LOG_OUTPUT for more info!"

0 commit comments

Comments
 (0)