Skip to content

Commit 439f9f1

Browse files
committed
Actions: More cleanup
Removes the checkout action, as this is no longer needed, and folds the `grep` into `jq`.
1 parent 4680b25 commit 439f9f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/check-change-note.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
check-change-note:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
1413
- name: Fail if no change note found. To fix, either add one, or add the `no-change-note-required` label.
1514
if: |
1615
github.event.pull_request.draft == false &&
@@ -19,5 +18,4 @@ jobs:
1918
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2019
run: |
2120
gh api 'repos/${{github.repository}}/pulls/${{github.event.number}}/files' --paginate |
22-
jq '.[].filename' --raw-output |
23-
grep '/change-notes/.*\.md$'
21+
jq 'any(.[].filename ; test("/change-notes/.*[.]md$"))' --exit-status

0 commit comments

Comments
 (0)