We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4680b25 commit 439f9f1Copy full SHA for 439f9f1
.github/workflows/check-change-note.yml
@@ -10,7 +10,6 @@ jobs:
10
check-change-note:
11
runs-on: ubuntu-latest
12
steps:
13
- - uses: actions/checkout@v2
14
- name: Fail if no change note found. To fix, either add one, or add the `no-change-note-required` label.
15
if: |
16
github.event.pull_request.draft == false &&
@@ -19,5 +18,4 @@ jobs:
19
18
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
run: |
21
gh api 'repos/${{github.repository}}/pulls/${{github.event.number}}/files' --paginate |
22
- jq '.[].filename' --raw-output |
23
- grep '/change-notes/.*\.md$'
+ jq 'any(.[].filename ; test("/change-notes/.*[.]md$"))' --exit-status
0 commit comments