Skip to content

Commit daa417a

Browse files
committed
add enforcement
1 parent c35e9ca commit daa417a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/checklist.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,29 @@ name: Checklist Handler
22
on: [pull_request]
33

44
jobs:
5-
label:
5+
add-checklist:
66
runs-on: ubuntu-latest
77
steps:
8-
- id: get-comment-body
8+
- name: Get Comment Body
9+
id: get-comment-body
910
run: |
10-
body=$(cat checklist.md)
11+
body=$(cat .github/workflows/checklist.md)
1112
body="${body//'%'/'%25'}"
1213
body="${body//$'\n'/'%0A'}"
1314
body="${body//$'\r'/'%0D'}"
1415
echo ::set-output name=body::$body
1516
- name: Update comment
17+
# if: github.event.type == 'opened'
1618
uses: peter-evans/create-or-update-comment@v1
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1721
with:
1822
comment-id: ${{ github.event.comment.id }}
1923
body: ${{ steps.get-comment-body.outputs.body }}
20-
token: GITHUB_TOKEN
2124
edit-mode: append
25+
enforce-checklist:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: adamzolyak/checklist-checker-action@master
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)