Skip to content

Commit 829fb33

Browse files
committed
增加每次url可达性测试后等待1秒,增加3次重试
1 parent a566c12 commit 829fb33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/validate_json.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
unreachable_urls=() # 初始化一个数组用于记录不可访问的 URL
3030
3131
for repo in $repos; do
32-
if curl --output /dev/null --silent --head --fail "$repo"; then
32+
sleep 1
33+
if curl --output /dev/null --silent --head --fail --retry 3 "$repo"; then
3334
echo "Repository $repo is accessible."
3435
else
3536
echo "Repository $repo is NOT accessible."

0 commit comments

Comments
 (0)