diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 12e8e1253..245a48ac4 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,8 +1,8 @@ name: build on: push: - tags: - - 'v*' + branches: [main] + tags: [v*.*.*] pull_request: workflow_call: inputs: @@ -21,8 +21,7 @@ env: jobs: build: - if: | - ${{ !startsWith(github.event.head_commit.message, 'chore(main)')}} + if: ${{ !( github.workflow != 'build' && startsWith(github.event.head_commit.message, 'release:') && github.event.head_commit.author == 'github-actions[bot]' ) }} permissions: contents: write strategy: