From c975520489215c3aa0dcb293b0a7226ae66144f2 Mon Sep 17 00:00:00 2001 From: xooooooooox Date: Sat, 28 Dec 2024 03:14:57 +0800 Subject: [PATCH] feat(ci/cd): event paths-ignore --- .github/workflows/publish-github-packages.yml | 3 +++ pom.xml | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-github-packages.yml b/.github/workflows/publish-github-packages.yml index d8fcb1a..fd9fd02 100644 --- a/.github/workflows/publish-github-packages.yml +++ b/.github/workflows/publish-github-packages.yml @@ -13,6 +13,9 @@ on: jobs: publish: + # 当在 main 分支执行 ./mvnw release:prepare 时, 会产生两次 push 到 main, 避免触发重复 ci/cd(两次) + # skip if commit message has [maven-release-plugin] prepare release + if: "! contains(github.event.head_commit.message, '[maven-release-plugin] prepare release')" runs-on: ubuntu-latest permissions: contents: read diff --git a/pom.xml b/pom.xml index 05bdf7b..3f6b547 100644 --- a/pom.xml +++ b/pom.xml @@ -212,7 +212,11 @@ @{project.version} true - true + + + + + false