diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d79d548fd..3e9356f48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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