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

Commit

Permalink
fix(ci): allow pull_request workflow to run in merge queues
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Dec 20, 2023
1 parent 8f56aa6 commit 33e2a9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
name: Check pull request

concurrency:
group: ${{ github.head_ref }}
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

env:
Expand All @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Check if relevant files have changed
if: ${{ github.head_ref != '' }}
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: service-changed
with:
Expand All @@ -28,7 +29,7 @@ jobs:
return await script({github, context})
- name: Fail if no files changed
if: "${{ steps.service-changed.outputs.result != 'true' }}"
if: "${{ steps.service-changed.outputs.result != 'true' || github.head_ref != '' }}"
shell: bash
run: exit 1

Expand Down

0 comments on commit 33e2a9d

Please sign in to comment.