restrict canary workflow a bit better
This commit is contained in:
parent
331bdb0bf9
commit
4f7b833e91
1 changed files with 8 additions and 5 deletions
13
.github/workflows/canary.yaml
vendored
13
.github/workflows/canary.yaml
vendored
|
|
@ -1,18 +1,21 @@
|
||||||
name: Canary
|
name: Canary
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
|
types: [opened, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Restricts to:
|
# Restricts to:
|
||||||
# 1) the base repository
|
# 1) push event on a PR
|
||||||
# 2) NOT the default branch ("main")
|
# 2) the base repository
|
||||||
# 3) NOT "ci skip" in commit message
|
# 3) NOT the default branch ("main")
|
||||||
# 4) NOT "skip ci" in commit message
|
# 4) NOT "ci skip" in commit message
|
||||||
|
# 5) NOT "skip ci" in commit message
|
||||||
if: |
|
if: |
|
||||||
|
github.event_name == 'push' &&
|
||||||
github.repository == 'reuters-graphics/graphics-components' &&
|
github.repository == 'reuters-graphics/graphics-components' &&
|
||||||
endsWith(github.event.base_ref, github.event.repository.default_branch) != true &&
|
endsWith(github.event.base_ref, github.event.repository.default_branch) != true &&
|
||||||
contains(github.event.head_commit.message, 'ci skip') != true &&
|
contains(github.event.head_commit.message, 'ci skip') != true &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue