From 34d33fee299965673ba5032ea6f52ce7e1ca3068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Thu, 19 Dec 2024 10:53:30 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6db76f2..8f17622 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,7 +165,7 @@ jobs: # 仅在 ref 为以 v 开头的标签时执行 - name: Publish to Docker Hub latest and stable - if: startsWith(github.ref, 'refs/tags/v') + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') run: | # Define the commands to push latest and stable tags echo "Pushing latest and stable tags..."