Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
Fix error messaging
  • Loading branch information
peternied authored Nov 28, 2023
1 parent abcf02f commit 8a9f08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ runs:
echo "::error::Not enough approvals. Only $approvals_count out of required ${{ inputs.min-required }}."
exit 1
elif [[ ! -z "$required_approvers_list" ]] && [[ $approvals_count -eq 0 ]]; then
echo "No approvals from the required approvers."
echo "::error::No approvals from the required approvers."
exit 1
elif [[ ! -z "$required_approvers_list" ]] && [[ $approvals_count -lt ${{ inputs.min-required }} ]]; then
echo "::error::Not enough approvals by required approvers. Only $approvals_count out of required ${{ inputs.min-required }}."
Expand Down

0 comments on commit 8a9f08a

Please sign in to comment.