Skip to content

Commit

Permalink
Merge pull request #1 from 123hi123/123hi123-patch-1
Browse files Browse the repository at this point in the history
add auto retry
  • Loading branch information
123hi123 authored Sep 18, 2024
2 parents f9e2e4b + 18730d3 commit 086470b
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Auto

on:
schedule:
- cron: "30 22 * * *" # 北京时间上午06:30
- cron: "30 23 * * *" # 北京时间上午06:30
- cron: "30 23 * * *" # 北京时间上午07:30
workflow_dispatch:

env:
Expand All @@ -28,10 +27,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Run Project
run: |
cd workflows
yarn
yarn checkin
uses: nick-invision/retry@v2
with:
timeout_minutes: 30
max_attempts: 3
retry_on: error
command: |
cd workflows
yarn
yarn checkin
# SeaGold:
# needs: CheckIn
Expand All @@ -40,7 +44,12 @@ jobs:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# - name: Run Project
# run: |
# cd workflows
# yarn
# yarn seagold
# uses: nick-invision/retry@v2
# with:
# timeout_minutes: 10
# max_attempts: 3
# retry_on: error
# command: |
# cd workflows
# yarn
# yarn seagold

0 comments on commit 086470b

Please sign in to comment.