Skip to content

Commit

Permalink
feat(build): 修改工作流以在自托管环境中运行构建
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed Jun 20, 2024
1 parent 7c8daec commit c71681d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ permissions:
contents: write

jobs:
check-bats-version:
runs-on:
group: Default
build:
runs-on: self-hosted

steps:
- name: Checkout repository
Expand Down Expand Up @@ -48,10 +47,10 @@ jobs:
git add *.txt
git commit -m "Update IP list"
git push
# 重试逻辑
if [ $? -ne 0 ]; then
echo "Commit and push failed, retrying..."
sleep 5 # 等待5秒后重试
git push
fi
fi

0 comments on commit c71681d

Please sign in to comment.