更新 .gitea/workflows/demo.yaml

This commit is contained in:
xiehaijun 2025-07-26 17:16:01 +00:00
parent b47c2b4b81
commit a4ecf224ed
1 changed files with 2 additions and 0 deletions

View File

@ -55,8 +55,10 @@ jobs:
echo "是否是合并关闭的 $PR_STATUS_FLAG"
if [[ "$PR_STATUS_FLAG" = true ]] ; then
echo "合并完成"
exit 0
else
echo "取消合并"
exit 1
fi
pr_num=${{ github.event.pull_request.number }}
git fetch origin refs/pull/${pr_num}/head:refs/remotes/origin/pull/${pr_num}/head