From 6ed8ae2e285cb5bf43ade07a2c9c98a13e68e43b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 25 Nov 2026 00:23:05 +0000 Subject: [PATCH] ci: don't build/publish images on feature branch pushes branches-ignore '*' does not match branch names containing '/', so pushing cursor/... branches ran the Docker job and overwrote :latest. Tag pushes and pull_request runs are unchanged. Co-authored-by: qaiu --- .github/workflows/maven.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ef90ef1..ff8543c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -9,8 +9,9 @@ on: push: tags: - 'v*' + # '*' 不匹配含 / 的分支名(如 cursor/xxx),会让功能分支推送也发布 :latest 镜像 branches-ignore: - - '*' + - '**' paths-ignore: - 'bin/**' - '.github/**'