From e04fcba175d72acddee2717785731d0d9db85951 Mon Sep 17 00:00:00 2001 From: Bkm016 Date: Fri, 29 Dec 2023 16:12:28 +0800 Subject: [PATCH] [publish] 6.0.12 Update github workflows --- .github/workflows/build-publish-6.0.12.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish-6.0.12.yml b/.github/workflows/build-publish-6.0.12.yml index cd0f99b63..8a187b711 100644 --- a/.github/workflows/build-publish-6.0.12.yml +++ b/.github/workflows/build-publish-6.0.12.yml @@ -68,6 +68,13 @@ jobs: NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} run: ./gradlew publish -Pbuild=$GITHUB_RUN_NUMBER -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD + # 获取 commit 信息 + - name: get commit messages + id: get_commits + run: | + commit_messages=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s") + echo "::set-output name=messages::$commit_messages" + # 发布到 GitHub - name: create release uses: actions/create-release@v1 @@ -76,6 +83,6 @@ jobs: with: tag_name: 6.0.12-${{ github.run_number }} release_name: 6.0.12-${{ github.run_number }} - release_notes: |- + body: | ## 🤨 本次更新都有哪些主要改动? - - ${{ github.event.head_commit.message }} + ${{ steps.get_commits.outputs.messages }}