Skip to content

Commit

Permalink
Build on PRs, push to main, or commits with [CI BUILD] somewhere in t…
Browse files Browse the repository at this point in the history
…he message (icosa-foundation#75)
  • Loading branch information
mikeage authored Apr 4, 2021
1 parent 0806a06 commit 68213a3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request: {}
push:
branches:
- main
- "*"
tags:
- "v*"

Expand All @@ -18,6 +18,16 @@ env:

jobs:
configuration:
if: |
(github.event_name == 'pull_request') ||
(
github.event_name == 'push' &&
(
github.ref == 'refs/heads/main' ||
contains(github.ref, 'refs/tags/v') ||
contains(github.event.head_commit.message, '[CI BUILD]')
)
)
name: Configure Build Parameters
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -292,7 +302,9 @@ jobs:
runs-on: ubuntu-latest
if: |
github.event_name == 'push' &&
github.repository == 'icosa-gallery/open-brush'
github.repository == 'icosa-gallery/open-brush' &&
(github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v'))
strategy:
fail-fast: false

Expand Down

0 comments on commit 68213a3

Please sign in to comment.