更新 .gitea/workflows/demo.yaml
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 39s Details

获取测试信息
This commit is contained in:
xiehaijun 2025-07-26 15:32:14 +00:00
parent d8349b10f5
commit 26ed04593c
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@ jobs:
echo "Commit Body: $commit_body" echo "Commit Body: $commit_body"
commit_name=$(git log -1 --pretty=format:"%an") commit_name=$(git log -1 --pretty=format:"%an")
echo "Commit name: $commit_name" 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 "🎉 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 "🐧 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 }}." - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."