Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 33e2a9d

Browse files
committed
fix(ci): allow pull_request workflow to run in merge queues
1 parent 8f56aa6 commit 33e2a9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pull_request.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
name: Check pull request
66

77
concurrency:
8-
group: ${{ github.head_ref }}
8+
group: ${{ github.head_ref || github.ref_name }}
99
cancel-in-progress: true
1010

1111
env:
@@ -19,6 +19,7 @@ jobs:
1919
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2020

2121
- name: Check if relevant files have changed
22+
if: ${{ github.head_ref != '' }}
2223
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2324
id: service-changed
2425
with:
@@ -28,7 +29,7 @@ jobs:
2829
return await script({github, context})
2930
3031
- name: Fail if no files changed
31-
if: "${{ steps.service-changed.outputs.result != 'true' }}"
32+
if: "${{ steps.service-changed.outputs.result != 'true' || github.head_ref != '' }}"
3233
shell: bash
3334
run: exit 1
3435

0 commit comments

Comments
 (0)