Skip to content

Commit

Permalink
fix(pr-label-by-review): fix protection type check (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cysword committed Sep 15, 2023
1 parent 1a780f6 commit 365f765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr-label-by-review/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:

- name: 'Get required approvals from branch protection'
id: branch-protection
if: inputs.required-approvals == '' && inputs.protectionType == 'branch-protection'
if: inputs.required-approvals == '' && inputs.protection-type == 'branch-protection'
uses: actions/github-script@v6
with:
github-token: ${{ steps.token.outputs.token }}
Expand All @@ -57,7 +57,7 @@ runs:
- name: 'Get required approvals from rule sets'
id: rulesets
if: inputs.required-approvals == '' && inputs.protectionType == 'rulesets'
if: inputs.required-approvals == '' && inputs.protection-type == 'rulesets'
uses: actions/github-script@v6
with:
github-token: ${{ steps.token.outputs.token }}
Expand Down

0 comments on commit 365f765

Please sign in to comment.