From bb7a9f3004671845536ea45f32eaa4d3fd8aa81c Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sat, 26 Jul 2025 14:56:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 提交详细信息 --- .gitea/workflows/demo.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index b9d1af5..866d96a 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -23,6 +23,10 @@ jobs: if: github.event_name == 'push' run: | echo "提交的信息: ${{ github.event.head_commit.message }}" + commit_title=$(git log -1 --pretty=format:"%s") + commit_body=$(git log -1 --pretty=format:"%b") + echo "Commit Title: $commit_title" + echo "Commit Body: $commit_body" - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."