-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Workflows: Augment workflow to ensure failure with invalid change notes #7946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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 | ||
|
||
run: | | ||
codeql pack release --groups cpp,csharp,java,javascript,python,ruby,-examples,-test,-experimental | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this actually fail the step if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is a workflow run that I intentionally failed. https://github.com/github/codeql/runs/5148220083?check_suite_focus=true It fails the job as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should change
*/ql/src/**/*.qll
to*/ql/**/*.qll
(and same for.ql
). Otherwise we're not running on changes that only affect the library packs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was committed accidentally. I think we should exclude tests and example packs from here. So, I will add a line like this:
*/ql/lib/**/*.qll
. Same for*.ql
. It's not really related to this change, but I'll add it anyway.