Skip to content

Commit

Permalink
Update fetchRss.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raileo98 authored Oct 17, 2024
1 parent 12de42b commit f13904d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/fetchRss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ 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
echo "拉取成功"
break
else
echo "拉取失敗,正在重試..."
export COUNT = $((COUNT + 1))
sleep 1 # 等待 1 秒後再重試
COUNT=$((COUNT + 1))
sleep 5 # 等待 5 秒後再重試
fi
done
Expand Down

0 comments on commit f13904d

Please sign in to comment.