Compare commits

...

2 Commits

Author SHA1 Message Date
xiehaijun b47c2b4b81 Merge pull request '更新 .gitea/workflows/demo.yaml' (#5) from xiehaijun-patch-1 into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 35s Details
发布生产
2025-07-26 17:10:18 +00:00
xiehaijun 123a9c7bc9 更新 .gitea/workflows/demo.yaml
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Failing after 25s Details
2025-07-26 17:03:17 +00:00
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@ jobs:
commit_body=$(git log -1 --pretty=format:"%b" origin/pull/${pr_num}/head) commit_body=$(git log -1 --pretty=format:"%b" origin/pull/${pr_num}/head)
echo "合并请求 Commit Title: $commit_title" echo "合并请求 Commit Title: $commit_title"
echo "合并请求Commit Body: $commit_body" echo "合并请求Commit Body: $commit_body"
if echo "$commit_body" | grep -q "发布生产"; then
exit 0
else
echo "不包含"
exit 1
fi
env: env:
PR_STATUS_FLAG: ${{ github.event.pull_request.merged }} PR_STATUS_FLAG: ${{ github.event.pull_request.merged }}