chore(ci): update github action

This commit is contained in:
Ran
2026-02-24 16:58:04 +08:00
parent 3e3379a869
commit eeef8a46c2
+4 -4
View File
@@ -2,7 +2,7 @@ name: Docker
on: on:
push: push:
branches: [main] branches: [main, "v*.*"]
tags: ["v*"] tags: ["v*"]
paths-ignore: paths-ignore:
- "docs/**" - "docs/**"
@@ -11,7 +11,7 @@ on:
release: release:
types: [published] types: [published]
pull_request: pull_request:
branches: [main] branches: [main, "v*.*"]
paths-ignore: paths-ignore:
- "docs/**" - "docs/**"
- "**.md" - "**.md"
@@ -23,7 +23,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
env: 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 REGISTRY: ghcr.io
permissions: permissions:
@@ -126,7 +126,7 @@ jobs:
merge: merge:
runs-on: ubuntu-latest 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 needs: build
strategy: strategy:
matrix: matrix: