From 4f7b833e915c9e7e9d1b9f0688d40e28d69c48ae Mon Sep 17 00:00:00 2001 From: Jon McClure Date: Tue, 1 Aug 2023 20:17:45 +0100 Subject: [PATCH] restrict canary workflow a bit better --- .github/workflows/canary.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index 2177912c..54921ca5 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -1,18 +1,21 @@ name: Canary on: - push: + pull_request: + types: [opened, reopened] jobs: release: name: Release runs-on: ubuntu-latest # Restricts to: - # 1) the base repository - # 2) NOT the default branch ("main") - # 3) NOT "ci skip" in commit message - # 4) NOT "skip ci" in commit message + # 1) push event on a PR + # 2) the base repository + # 3) NOT the default branch ("main") + # 4) NOT "ci skip" in commit message + # 5) NOT "skip ci" in commit message if: | + github.event_name == 'push' && github.repository == 'reuters-graphics/graphics-components' && endsWith(github.event.base_ref, github.event.repository.default_branch) != true && contains(github.event.head_commit.message, 'ci skip') != true &&