Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions .github/workflows/bump-spring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,8 @@ jobs:
with:
version: ${{ needs.latest-version.outputs.spring-boot }}
compare-to: ${{ needs.current-version.outputs.spring-boot }}
# 依 Spring Boot 升級幅度決定 PR 的 conventional commit 類型: 中版號 (或主版號) 升級用 feat, 僅升小版號用 fix
- name: Resolve commit type
id: commit-type
env:
CURRENT: ${{ needs.current-version.outputs.spring-boot }}
LATEST: ${{ needs.latest-version.outputs.spring-boot }}
run: |
# 去掉修訂號, 只比 major.minor
if [ "${CURRENT%.*}" = "${LATEST%.*}" ]; then
echo "type=fix" >> "$GITHUB_OUTPUT"
else
echo "type=feat" >> "$GITHUB_OUTPUT"
fi
outputs:
comparison-result: ${{ steps.semver-compare.outputs.comparison-result }}
commit-type: ${{ steps.commit-type.outputs.type }}

bump-spring:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -90,8 +76,8 @@ jobs:
uses: peter-evans/create-pull-request@v8
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: "${{ needs.compare-version.outputs.commit-type }}: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}"
title: "${{ needs.compare-version.outputs.commit-type }}: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}"
commit-message: "chore: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}"
title: "chore: bump spring-boot from ${{ needs.current-version.outputs.spring-boot }} to ${{ needs.latest-version.outputs.spring-boot }}"
committer: bot 👾 <bot-noreply@softleader.com.tw>
author: bot 👾 <bot-noreply@softleader.com.tw>
body: >-
Expand Down
15 changes: 14 additions & 1 deletion .release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@
"changelog-path": "CHANGELOG.md",
"include-v-in-tag": false,
"include-component-in-tag": false,
"skip-snapshot": true
"skip-snapshot": true,
"changelog-sections": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "perf", "section": "Performance Improvements"},
{"type": "revert", "section": "Reverts"},
{"type": "chore", "section": "Miscellaneous Chores"},
{"type": "refactor", "section": "Code Refactoring"},
{"type": "docs", "section": "Documentation", "hidden": true},
{"type": "style", "section": "Styles", "hidden": true},
{"type": "test", "section": "Tests", "hidden": true},
{"type": "build", "section": "Build System", "hidden": true},
{"type": "ci", "section": "Continuous Integration", "hidden": true}
]
}
}
}