mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 18:09:43 +00:00
Simplify if condition of CHANGELOG-comment-post step
This commit is contained in:
17
.github/workflows/pr-checks.yml
vendored
17
.github/workflows/pr-checks.yml
vendored
@@ -272,19 +272,10 @@ jobs:
|
||||
# Release, backport, mergeback, and bundle-update PRs deliberately modify CHANGELOG.md,
|
||||
# so skip comment management entirely for these automation flows.
|
||||
if: >-
|
||||
!(
|
||||
startsWith(github.event.pull_request.title, 'Merge main into releases/v') &&
|
||||
startsWith(github.event.pull_request.head.ref, 'update-v') &&
|
||||
startsWith(github.event.pull_request.base.ref, 'releases/v') ||
|
||||
startsWith(github.event.pull_request.title, 'Merge releases/v') &&
|
||||
contains(github.event.pull_request.title, ' into releases/v') &&
|
||||
startsWith(github.event.pull_request.head.ref, 'backport-v') &&
|
||||
startsWith(github.event.pull_request.base.ref, 'releases/v') ||
|
||||
startsWith(github.event.pull_request.title, 'Mergeback ') &&
|
||||
startsWith(github.event.pull_request.head.ref, 'mergeback/') ||
|
||||
startsWith(github.event.pull_request.title, 'Update default bundle to ') &&
|
||||
startsWith(github.event.pull_request.head.ref, 'update-bundle/')
|
||||
)
|
||||
!startsWith(github.event.pull_request.head.ref, 'update-v') &&
|
||||
!startsWith(github.event.pull_request.head.ref, 'backport-v') &&
|
||||
!startsWith(github.event.pull_request.head.ref, 'mergeback/') &&
|
||||
!startsWith(github.event.pull_request.head.ref, 'update-bundle/')
|
||||
env:
|
||||
COMMENT_MARKER: "<!-- changelog-warning-bot -->"
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user