diff --git a/.github/workflows/docker-image-en.yml b/.github/workflows/docker-image-en.yml index 172552bab6..4c67cfb795 100644 --- a/.github/workflows/docker-image-en.yml +++ b/.github/workflows/docker-image-en.yml @@ -2,8 +2,6 @@ name: Publish Docker image (English) on: push: - branches: - - main tags: - 'v*.*.*' workflow_dispatch: @@ -14,6 +12,7 @@ on: jobs: push_to_registries: name: Push Docker image to multiple registries + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: packages: write diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 944b3e5dd5..b1c0fe7347 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,8 +2,6 @@ name: Publish Docker image on: push: - branches: - - main tags: - 'v*.*.*' workflow_dispatch: @@ -15,6 +13,7 @@ jobs: push_to_registries: name: Push Docker image to multiple registries runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' permissions: packages: write contents: read diff --git a/.github/workflows/linux-release.yml b/.github/workflows/linux-release.yml index 36a8326f23..ff1556f2dd 100644 --- a/.github/workflows/linux-release.yml +++ b/.github/workflows/linux-release.yml @@ -4,8 +4,6 @@ permissions: on: push: - branches: - - main tags: - 'v*.*.*' - '!*-alpha*' @@ -17,6 +15,7 @@ on: jobs: release: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index dc5cf08d0d..d98c73dd1f 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -4,8 +4,6 @@ permissions: on: push: - branches: - - main tags: - 'v*.*.*' - '!*-alpha*' @@ -17,6 +15,7 @@ on: jobs: release: runs-on: macos-latest + if: github.ref == 'refs/heads/main' steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index a96b334f36..644d6fa659 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -4,8 +4,6 @@ permissions: on: push: - branches: - - main tags: - 'v*.*.*' - '!*-alpha*' @@ -17,6 +15,7 @@ on: jobs: release: runs-on: windows-latest + if: github.ref == 'refs/heads/main' defaults: run: shell: bash