chore: move if to single line

This commit is contained in:
Alexis Tyler
2021-03-28 18:50:23 -07:00
parent 7a673dc0f8
commit 339f98f31a

View File

@@ -9,12 +9,8 @@ on:
jobs:
start:
if: |
# This prevents a tag running twice as it'll have a "tag" and a "commit" event
# Normal commit
(github.event.base_ref === "refs/heads/$default-branch" && !startsWith(github.event.head_commit.message, 'chore(release)')) ||
# Release tag
(startsWith(github.event.base_ref, 'refs/tags/') && startsWith(github.event.head_commit.message, 'chore(release)'))
# This prevents a tag running twice as it'll have a "tag" and a "commit" event
if: (github.event.base_ref === "refs/heads/$default-branch" && !startsWith(github.event.head_commit.message, 'chore(release)')) || (startsWith(github.event.base_ref, 'refs/tags/') && startsWith(github.event.head_commit.message, 'chore(release)'))
runs-on: ubuntu-latest
steps:
- name: Validate branch and tag