Skip to content

Commit 5e1be21

Browse files
author
Matt Pryor
committed
Fail safe for approvals by requiring an explicit yes
1 parent 0a6c528 commit 5e1be21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow-approve/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
args:
2828
- --token
2929
- ${{ inputs.token }}
30-
- ${{ inputs.approval-required == 'yes' && '--approval-required' || '--no-approval-required' }}
30+
- ${{ inputs.approval-required == 'no' && '--no-approval-required' || '--approval-required' }}
3131
- ${{ inputs.repository }}
3232
- ${{ inputs.pull-request-number }}
3333
- ${{ inputs.run-id }}

0 commit comments

Comments
 (0)