From e01ff0523b5a6b4eef50ffffdbf5e4d08245cd9a Mon Sep 17 00:00:00 2001 From: Marcin Date: Wed, 22 May 2024 11:15:30 +0000 Subject: [PATCH] L1-55 Run check pr title only on pull request (#1743) # Description The change https://github.com/Cardinal-Cryptography/aleph-node/commit/a0faac51f21f46a90bc1e4000c6ca9211616dd87 had a bug that ran the `PR check title` job also on the `merge_group` trigger. It should run only on a PR. It fixes https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/9188416432/job/25268221144 ## Type of change Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue) --- .github/workflows/on-pull-request-commit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/on-pull-request-commit.yml b/.github/workflows/on-pull-request-commit.yml index 3be211a669..1a2a250375 100644 --- a/.github/workflows/on-pull-request-commit.yml +++ b/.github/workflows/on-pull-request-commit.yml @@ -16,6 +16,7 @@ jobs: check-pr-title: name: Check PR title runs-on: ubuntu-20.04 + if: github.event_name == 'pull_request' steps: - name: Check PR title uses: Cardinal-Cryptography/github-actions/check-pr-title@v7