Skip to content

Commit

Permalink
adding boolean for posting approval comment #6
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjohanning authored Sep 15, 2022
1 parent be02c76 commit 353f7bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: "Fail the action (i.e. show the action run as red) if the command is not found in the comments from someone in the approver team"
required: true
default: 'false'
post-successful-approval-comment:
description: "Boolean whether to post successful approval comment"
required: true
default: 'true'
successful-approval-comment:
description: "Comment to post if there is an approval is found"
required: true
Expand Down Expand Up @@ -81,7 +85,7 @@ runs:
:cry: No one approved your run yet! Have someone from the @${{ github.repository_owner }}/${{ inputs.team-name }} team run `/approve` and then try your command again
:no_entry_sign: :no_entry: Marking the workflow run as failed
- if: ${{ steps.check-approval.outputs.approved == 'true' }}
- if: ${{ steps.check-approval.outputs.approved == 'true' && inputs.post-successful-approval-comment == 'true' }}
name: Create completed comment
uses: peter-evans/create-or-update-comment@v1
with:
Expand Down

0 comments on commit 353f7bc

Please sign in to comment.