Skip to content

Commit 0f3d780

Browse files
authored
Merge pull request #7946 from github/aeisenberg/check-change-not
Workflows: Augment workflow to ensure failure with invalid change notes
2 parents b3048ee + 5092493 commit 0f3d780

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ on:
66
paths:
77
- "*/ql/src/**/*.ql"
88
- "*/ql/src/**/*.qll"
9+
- "*/ql/lib/**/*.ql"
10+
- "*/ql/lib/**/*.qll"
911
- "!**/experimental/**"
1012
- "!ql/**"
13+
- ".github/workflows/check-change-note.yml"
1114

1215
jobs:
1316
check-change-note:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
28+
run: |
29+
codeql pack release --groups cpp,csharp,java,javascript,python,ruby,-examples,-test,-experimental

0 commit comments

Comments
 (0)