From 18730d3b3f60b042d4a3d3253b7e9a9bcbf00777 Mon Sep 17 00:00:00 2001 From: User <36217117+123hi123@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:20:35 +0800 Subject: [PATCH] and auto retry --- .github/workflows/auto.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/auto.yml b/.github/workflows/auto.yml index 1d5d1b86..a64d71be 100644 --- a/.github/workflows/auto.yml +++ b/.github/workflows/auto.yml @@ -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: @@ -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 @@ -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