From eeef8a46c2c3e388c11686f86c9cc8d263e5aa5b Mon Sep 17 00:00:00 2001 From: Ran <16112591+chen-ran@users.noreply.github.com> Date: Tue, 24 Feb 2026 16:58:04 +0800 Subject: [PATCH] chore(ci): update github action --- .github/workflows/docker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 53f765b9..d22b5e1f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,7 +2,7 @@ name: Docker on: push: - branches: [main] + branches: [main, "v*.*"] tags: ["v*"] paths-ignore: - "docs/**" @@ -11,7 +11,7 @@ on: release: types: [published] pull_request: - branches: [main] + branches: [main, "v*.*"] paths-ignore: - "docs/**" - "**.md" @@ -23,7 +23,7 @@ concurrency: cancel-in-progress: true env: - PUSH: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release') }} + PUSH: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/v') || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release') }} REGISTRY: ghcr.io permissions: @@ -126,7 +126,7 @@ jobs: merge: runs-on: ubuntu-latest - if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release') + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/v') || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release') needs: build strategy: matrix: