更新 .gitea/workflows/demo.yaml
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 28s Details

测试中途退出
This commit is contained in:
xiehaijun 2025-07-26 15:50:34 +00:00
parent 26ed04593c
commit f0b837390a
1 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,16 @@ jobs:
echo "作者提交时间: $commit_date" echo "作者提交时间: $commit_date"
commit_durl=$(git log -1 --pretty=format:"%cr") commit_durl=$(git log -1 --pretty=format:"%cr")
echo "提交时长: $commit_durl" echo "提交时长: $commit_durl"
commit_hash=$(git log -1 --pretty=format:"%H")
echo "提交Hash: $commit_hash"
if [[ "$commit_body" =~ "发布生产" ]]; then
echo '包含: if echo "$string1" | grep -q "$string2"; then'
exit 0
else
echo "不包含"
exit 1
fi
- 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 }}."