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:
Gabriel Luiz Freitas Almeida 2024-12-18 12:43:20 -03:00 committed by GitHub
commit 6b21682b33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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"

View file

@ -4,6 +4,7 @@ name: Label PRs with Conventional Commits
on:
pull_request_target:
types: [opened, edited, synchronize]
merge_group:
jobs:
validate-pr: