Skip to content

Commit

Permalink
Fail safe for approvals by requiring an explicit yes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Oct 2, 2023
1 parent 0a6c528 commit 5e1be21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow-approve/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
args:
- --token
- ${{ inputs.token }}
- ${{ inputs.approval-required == 'yes' && '--approval-required' || '--no-approval-required' }}
- ${{ inputs.approval-required == 'no' && '--no-approval-required' || '--approval-required' }}
- ${{ inputs.repository }}
- ${{ inputs.pull-request-number }}
- ${{ inputs.run-id }}
Expand Down

0 comments on commit 5e1be21

Please sign in to comment.