From f13904d6839ce0943923decd928e9e6ddc8ae259 Mon Sep 17 00:00:00 2001 From: raileo98 <164594063+raileo98@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:16:08 +0000 Subject: [PATCH] Update fetchRss.yml --- .github/workflows/fetchRss.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fetchRss.yml b/.github/workflows/fetchRss.yml index a32694bba..9f5db81a4 100644 --- a/.github/workflows/fetchRss.yml +++ b/.github/workflows/fetchRss.yml @@ -102,8 +102,8 @@ jobs: git config --global user.name "github-actions" # 設定重試次數 - export RETRIES = 10 - export COUNT = 0 + RETRIES=5 + COUNT=0 while [ $COUNT -lt $RETRIES ]; do if git pull origin main --rebase; then @@ -111,8 +111,8 @@ jobs: break else echo "拉取失敗,正在重試..." - export COUNT = $((COUNT + 1)) - sleep 1 # 等待 1 秒後再重試 + COUNT=$((COUNT + 1)) + sleep 5 # 等待 5 秒後再重試 fi done