diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2f814e9..ec79e78d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,11 @@ name: CI/CD -on: [pull_request, push, workflow_dispatch] +on: + push: + branches: + - master + pull_request: + workflow_dispatch: jobs: test: @@ -28,7 +33,7 @@ jobs: publish: needs: test - if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository_owner == 'supabase-community' }} + if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/master' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.repository_owner == 'supabase-community' }} runs-on: ubuntu-latest name: "Bump version, create changelog and publish" environment: