Skip to content

Commit 8e3b945

Browse files
authored
ci(l2): do not run pr-main_l2 workflow in the merge queue (#5151)
**Motivation** The merge queue was stuck waiting for `Integration Test L2` and `Lint L2` jobs to pass. But the pr-main_l2 workflow is not triggered in the merge queue, so there isn't any job running in the merge queue to meet these GHA requirements. **Description** Trigger pr-main_l2 workflow in the merge queue, but skip every job to meet the GHA requirements.
1 parent c5e99e0 commit 8e3b945

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pr-main_l2.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: L2 (without proving)
22
on:
33
push:
44
branches: ["main"]
5+
merge_group:
56
pull_request:
67
branches: ["**"]
78

@@ -37,7 +38,9 @@ jobs:
3738
- name: finish
3839
id: finish
3940
run: |
40-
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]; then
41+
if [[ "${GITHUB_EVENT_NAME}" == "merge_group" ]]; then
42+
echo "run_tests=false" >> "$GITHUB_OUTPUT"
43+
elif [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]; then
4144
echo "run_tests=true" >> "$GITHUB_OUTPUT"
4245
else
4346
echo "run_tests=${{ steps.filter.outputs.run_tests }}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)