From 9f4ca7cb75c6dfb18759a79bb1ddab8199631f46 Mon Sep 17 00:00:00 2001 From: Suisuroru Date: Thu, 23 Jan 2025 15:35:30 +0800 Subject: [PATCH] ci: optimize the construction process and add submission information details --- .github/workflows/auto_build_jar.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_build_jar.yml b/.github/workflows/auto_build_jar.yml index 191ca4d..0b5970f 100644 --- a/.github/workflows/auto_build_jar.yml +++ b/.github/workflows/auto_build_jar.yml @@ -52,6 +52,7 @@ jobs: - name: Check if commit message contains [skip] id: check_skip + if: env.SKIP_BUILD == 'false' run: | COMMIT_MESSAGE=$(git log -1 --pretty=%B) if [[ "$COMMIT_MESSAGE" == "[skip]"* ]]; then @@ -96,11 +97,14 @@ jobs: ### 最后一次提交信息 #### 提交SHA: > ${{ github.sha }} + #### 提交作者: + > ${{ github.event.head_commit.author.username }} + #### 提交时间: + > ${{ github.event.head_commit.timestamp }} #### 提交消息: > ${{ github.event.head_commit.message }} draft: false prerelease: true - makeLatest: true generateReleaseNotes: true artifacts: ${{ env.FINAL_JAR_NAME }}.jar token: ${{ secrets.GH_TOKEN }}