Skip to content

Commit

Permalink
Combine error log
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Apr 22, 2020
1 parent f75a305 commit 7f325d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/master-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ jobs:
EXPECTED_COMMAND="${EXPECTED_COMMAND} | xcpretty"
fi
if [ "${EXPECTED_COMMAND}" != "${{steps.xcodebuild.outputs.executed-command}}" ]; then
printf "::error::Executed command did not match expectations!\n"
printf "::error::Executed: ${{steps.xcodebuild.outputs.executed-command}}\n"
printf "::error::Expected: ${EXPECTED_COMMAND}\n"
printf "::error::Executed command did not match expectations!\nExecuted: ${{steps.xcodebuild.outputs.executed-command}}\nExpected: ${EXPECTED_COMMAND}\n"
exit 1
fi
Expand Down Expand Up @@ -179,8 +177,6 @@ jobs:
EXPECTED_COMMAND="${EXPECTED_COMMAND} | xcpretty"
fi
if [ "${EXPECTED_COMMAND}" != "${{steps.xcodebuild.outputs.executed-command}}" ]; then
printf "::error::Executed command did not match expectations!\n"
printf "::error::Executed: ${{steps.xcodebuild.outputs.executed-command}}\n"
printf "::error::Expected: ${EXPECTED_COMMAND}\n"
printf "::error::Executed command did not match expectations!\nExecuted: ${{steps.xcodebuild.outputs.executed-command}}\nExpected: ${EXPECTED_COMMAND}\n"
exit 1
fi
8 changes: 2 additions & 6 deletions .github/workflows/pull-request-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ jobs:
EXPECTED_COMMAND="${EXPECTED_COMMAND} | xcpretty"
fi
if [ "${EXPECTED_COMMAND}" != "${{steps.xcodebuild.outputs.executed-command}}" ]; then
printf "::error::Executed command did not match expectations!\n"
printf "::error::Executed: ${{steps.xcodebuild.outputs.executed-command}}\n"
printf "::error::Expected: ${EXPECTED_COMMAND}\n"
printf "::error::Executed command did not match expectations!\nExecuted: ${{steps.xcodebuild.outputs.executed-command}}\nExpected: ${EXPECTED_COMMAND}\n"
exit 1
fi
Expand Down Expand Up @@ -173,8 +171,6 @@ jobs:
EXPECTED_COMMAND="${EXPECTED_COMMAND} | xcpretty"
fi
if [ "${EXPECTED_COMMAND}" != "${{steps.xcodebuild.outputs.executed-command}}" ]; then
printf "::error::Executed command did not match expectations!\n"
printf "::error::Executed: ${{steps.xcodebuild.outputs.executed-command}}\n"
printf "::error::Expected: ${EXPECTED_COMMAND}\n"
printf "::error::Executed command did not match expectations!\nExecuted: ${{steps.xcodebuild.outputs.executed-command}}\nExpected: ${EXPECTED_COMMAND}\n"
exit 1
fi

0 comments on commit 7f325d9

Please sign in to comment.