chore: Update CI workflow to include 'merge_group' event (#5337)
* chore: Update CI workflow to include 'merge_group' event and adjust CI run conditions - Added 'merge_group' event type to the CI workflow triggers. - Updated the condition for running CI jobs to include 'merge_group' alongside existing events. * chore: Add 'merge_group' event to CI workflow for enhanced PR handling
This commit is contained in:
parent
8f6241be91
commit
6b21682b33
2 changed files with 3 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -39,7 +39,7 @@ on:
|
|||
default: "['3.10']"
|
||||
pull_request:
|
||||
types: [synchronize, labeled]
|
||||
|
||||
merge_group:
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
|
@ -80,7 +80,7 @@ jobs:
|
|||
name: Should Run CI
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
should-run-ci: ${{ (needs.check-nightly-status.outputs.should-proceed == 'true') && ((contains( github.event.pull_request.labels.*.name, 'lgtm') && github.event.pull_request.draft == false) || (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call')) }}
|
||||
should-run-ci: ${{ (needs.check-nightly-status.outputs.should-proceed == 'true') && ((contains( github.event.pull_request.labels.*.name, 'lgtm') && github.event.pull_request.draft == false) || (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name == 'merge_group')) }}
|
||||
steps:
|
||||
# Do anything just to make the job run
|
||||
- run: echo "Debug CI Condition"
|
||||
|
|
|
|||
1
.github/workflows/conventional-labels.yml
vendored
1
.github/workflows/conventional-labels.yml
vendored
|
|
@ -4,6 +4,7 @@ name: Label PRs with Conventional Commits
|
|||
on:
|
||||
pull_request_target:
|
||||
types: [opened, edited, synchronize]
|
||||
merge_group:
|
||||
|
||||
jobs:
|
||||
validate-pr:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue