From ab2327c4c0227c5fe4c5224c2c9a0cb3de1abb51 Mon Sep 17 00:00:00 2001 From: ZhaoFancy <139539780+ZhaoFancy@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:44:21 +0800 Subject: [PATCH] early exit (#161) Co-authored-by: Yi-01-ai --- .github/workflows/sync_files.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sync_files.yml b/.github/workflows/sync_files.yml index 417dd6e5..5329ebb4 100644 --- a/.github/workflows/sync_files.yml +++ b/.github/workflows/sync_files.yml @@ -71,5 +71,6 @@ jobs: git config --global user.email "yi@01.ai" git config --global user.name "yi-01-ai" git add . + git commit --dry-run || exit 0 git commit -m "Auto Sync from ${{ github.repositoryUrl}}/commit/${{ github.sha}}" git push ${{ env.REPO }}