From 482cbce7e823834a271fcce725c1e24da716c8e8 Mon Sep 17 00:00:00 2001 From: qaiu <736226400@qq.com> Date: Wed, 9 Jul 2025 07:09:58 +0800 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index f6b027c..f88996c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,8 +16,9 @@ permissions: on: push: tags: - - '*' - branches: [ "main" ] + - '*' # 只有推送tag时才会触发构建 + branches-ignore: + - '*' # 排除所有分支的提交 paths-ignore: - 'bin/**' - '.github/**' @@ -27,7 +28,8 @@ on: - '*.txt' - '*.md' pull_request: - branches: [ "main" ] + branches: + - "main" jobs: build: