Skip to content

Commit 9441ea9

Browse files
committed
Workflows: Augment workflow to ensure failure with invalid change notes
1 parent c9f8987 commit 9441ea9

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "*/ql/src/**/*.qll"
99
- "!**/experimental/**"
1010
- "!ql/**"
11+
- ".github/workflows/check-change-not.yml"
1112

1213
jobs:
1314
check-change-note:
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Validate change notes
2+
3+
on:
4+
push:
5+
paths:
6+
- "*/ql/*/change-notes/**/*"
7+
- ".github/workflows/validate-change-notes.yml"
8+
branches:
9+
- main
10+
- "rc/*"
11+
pull_request:
12+
paths:
13+
- "*/ql/*/change-notes/**/*"
14+
- ".github/workflows/validate-change-notes.yml"
15+
16+
jobs:
17+
check-change-note:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Setup CodeQL
24+
uses: ./.github/actions/fetch-codeql
25+
26+
- name: Fail if there are any errors with existing change notes
27+
if: |
28+
github.event.pull_request.draft == false
29+
30+
run: |
31+
codeql pack release --groups cpp,csharp,java,javascript,python,ruby,-examples,-test,-experimental

0 commit comments

Comments
 (0)