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']"
|
default: "['3.10']"
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [synchronize, labeled]
|
types: [synchronize, labeled]
|
||||||
|
merge_group:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
name: Should Run CI
|
name: Should Run CI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
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:
|
steps:
|
||||||
# Do anything just to make the job run
|
# Do anything just to make the job run
|
||||||
- run: echo "Debug CI Condition"
|
- 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:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, edited, synchronize]
|
types: [opened, edited, synchronize]
|
||||||
|
merge_group:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-pr:
|
validate-pr:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue