Skip to content

Commit

Permalink
Improve logging by using ::error:: (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku authored Jan 31, 2023
1 parent feef283 commit e29131b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ runs:
if [[ -z "$_sha" ]]; then
_sha=$(git rev-parse HEAD)
if [[ -z "$_sha" ]]; then
echo "Failed to obtain SHA of current commit. Halting."
echo "Make sure, that current directory is a git repository"
echo "or provide the PR's HEAD SHA as input."
echo "::error::Failed to obtain SHA of current commit. Halting. Make sure, that current directory is a git repository or provide the PR's HEAD SHA as input."
exit 1
fi
fi
Expand Down

0 comments on commit e29131b

Please sign in to comment.