Skip to content

Commit e04fcba

Browse files
committed
[publish] 6.0.12 Update github workflows
1 parent 3a1f4d5 commit e04fcba

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-publish-6.0.12.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
6969
run: ./gradlew publish -Pbuild=$GITHUB_RUN_NUMBER -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
7070

71+
# 获取 commit 信息
72+
- name: get commit messages
73+
id: get_commits
74+
run: |
75+
commit_messages=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s")
76+
echo "::set-output name=messages::$commit_messages"
77+
7178
# 发布到 GitHub
7279
- name: create release
7380
uses: actions/create-release@v1
@@ -76,6 +83,6 @@ jobs:
7683
with:
7784
tag_name: 6.0.12-${{ github.run_number }}
7885
release_name: 6.0.12-${{ github.run_number }}
79-
release_notes: |-
86+
body: |
8087
## 🤨 本次更新都有哪些主要改动?
81-
- ${{ github.event.head_commit.message }}
88+
${{ steps.get_commits.outputs.messages }}

0 commit comments

Comments
 (0)