Workflows: Augment workflow to ensure failure with invalid change notes

This commit is contained in:
Andrew Eisenberg
2022-02-10 13:41:01 -08:00
parent c9f898745c
commit 9441ea940c
2 changed files with 32 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ on:
- "*/ql/src/**/*.qll"
- "!**/experimental/**"
- "!ql/**"
- ".github/workflows/check-change-not.yml"
jobs:
check-change-note:

View File

@@ -0,0 +1,31 @@
name: Validate change notes
on:
push:
paths:
- "*/ql/*/change-notes/**/*"
- ".github/workflows/validate-change-notes.yml"
branches:
- main
- "rc/*"
pull_request:
paths:
- "*/ql/*/change-notes/**/*"
- ".github/workflows/validate-change-notes.yml"
jobs:
check-change-note:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup CodeQL
uses: ./.github/actions/fetch-codeql
- name: Fail if there are any errors with existing change notes
if: |
github.event.pull_request.draft == false
run: |
codeql pack release --groups cpp,csharp,java,javascript,python,ruby,-examples,-test,-experimental