From 26ed04593c8470deb7f059d542cb43cc09bf6b27 Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sat, 26 Jul 2025 15:32:14 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 获取测试信息 --- .gitea/workflows/demo.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 67b3a1e..9008fcc 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -31,6 +31,12 @@ jobs: echo "Commit Body: $commit_body" commit_name=$(git log -1 --pretty=format:"%an") echo "Commit name: $commit_name" + commit_email=$(git log -1 --pretty=format:"%ae") + echo "作者邮箱: $commit_email" + commit_date=$(git log -1 --pretty=format:"%ci") + echo "作者提交时间: $commit_date" + commit_durl=$(git log -1 --pretty=format:"%cr") + echo "提交时长: $commit_durl" - 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 }}."