From e12ea69b6a0c01b80379e032f49bf327204a96fe Mon Sep 17 00:00:00 2001 From: Yorun <547747006@qq.com> Date: Wed, 12 Apr 2023 15:31:40 +0000 Subject: [PATCH] ci(sync): add an error prompt --- .github/workflows/sync.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 52feae50..15d32407 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -31,3 +31,10 @@ jobs: # Set test_mode true to run tests instead of the true action!! test_mode: false + + - name: Sync check + if: failure() + run: | + echo "::error::由于权限不足,导致同步失败(这是预期的行为),请前往仓库首页手动执行[Sync fork]。" + echo "::error::Due to insufficient permissions, synchronization failed (as expected). Please go to the repository homepage and manually perform [Sync fork]." + exit 1