Skip to content

Commit

Permalink
feat(ci/cd): event paths-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
xooooooooox committed Dec 27, 2024
1 parent 3c45a41 commit c975520
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
<allowReleasePluginSnapshot>true</allowReleasePluginSnapshot>

<!-- scmCommentPrefix: default is [maven-release-plugin] -->
<!-- scmReleaseCommitComment: default is @{prefix} prepare release @{releaseLabel} -->
<!-- scmDevelopmentCommitComment: default is @{prefix} prepare for next development iteration -->

<!-- 如果为true, 那么 performRelease 将会为 true -->
<!-- 利用这个特性,可以将这个 performRelease 绑定到通过属性激活的 profile, 以补充 arguments 的不足 -->
<useReleaseProfile>false</useReleaseProfile>
Expand Down

0 comments on commit c975520

Please sign in to comment.