From 1171c98bbd941e04439ede0c20513f1c0e40269d Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Wed, 7 Aug 2024 18:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20pr-comment-ci.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-comment-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-comment-ci.yml b/.github/workflows/pr-comment-ci.yml index 9cb0a0d6..bd25e939 100644 --- a/.github/workflows/pr-comment-ci.yml +++ b/.github/workflows/pr-comment-ci.yml @@ -107,7 +107,7 @@ jobs: if [ "$working_tree_clean" -eq "1" ]; then echo "nothing to commit, working tree clean" - exit 0 + return 0 fi if [ "$count_both_modified" -gt "0" ]&&[ "$both_modified_csr_snap" -eq "0" ]&&[ "$both_modified_ssr_snap" -eq "0" ]; then @@ -124,7 +124,7 @@ jobs: git checkout --theirs test/snap/__snapshots__/ssr.test.jsx.snap fi git commit -am "chore: merge develop fix snap conflict" - exit 0 + return 0 fi git commit -am "chore: merge develop" @@ -139,8 +139,6 @@ jobs: working_tree_clean=$(git status | grep -c 'nothing to commit, working tree clean') if [ "$working_tree_clean" -eq "0" ]; then git add . - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" git commit -m "chore: update snapshot" fi - name: git push