Skip to content

Commit faef9ee

Browse files
authored
fix the approve-rule action (act-rules#2105)
1 parent aa622c3 commit faef9ee

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/approve-rule.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sets a rule to "approved" in the wcag-act-rules repository in a given branch.
1+
# Sets a rule to "approved" in the wcag-act-rules repository in a given branch.
22
name: Set a rule to approved
33
on:
44
workflow_dispatch:
@@ -14,12 +14,11 @@ jobs:
1414
dispatch:
1515
runs-on: ubuntu-latest
1616
steps:
17+
- uses: actions/checkout@v3
1718
- name: Check user permission
1819
uses: 74th/workflow-permission-action@1.0.0
1920
with:
2021
listfile: .github/workflows/chair-accounts.md
21-
22-
- uses: actions/checkout@v3
2322
- uses: actions/setup-node@v3
2423
with:
2524
node-version: '16'
@@ -39,4 +38,4 @@ jobs:
3938
git config --global user.name "${{ secrets.WAI_GIT_NAME }}"
4039
git config --global user.email "${{ secrets.WAI_GIT_EMAIL }}"
4140
- name: Set rule to approved
42-
run: npx zx .github/scripts/wai-build.mjs --ruleId ${{ github.event.inputs.ruleId }}" --branch ${{ github.event.inputs.branch }}"
41+
run: npx zx .github/scripts/approve-rule.mjs --ruleId "${{ github.event.inputs.ruleId }}" --branch "${{ github.event.inputs.branch }}"

0 commit comments

Comments
 (0)