CI: retry setup on failure (#29785)
* try a setup action
* should be uses
* fix that formatting
* try conclusion
* continue on error
* try without hyphens
* only when failure
* make it optional
* continue on error
* those don't fail anymore
* what about 3 failures
* remove stuff for debugging
* cleanup
* review suggestions
* change that too
* fix pj
old-commit-hash: 917f71d446
test-msgs
parent
ef1155469b
commit
e468072f1f
5 changed files with 63 additions and 13 deletions
@ -0,0 +1,39 @@ |
|||||||
|
name: 'openpilot env setup, with retry on failure' |
||||||
|
|
||||||
|
inputs: |
||||||
|
git_lfs: |
||||||
|
description: 'Whether or not to pull the git lfs' |
||||||
|
required: false |
||||||
|
default: 'true' |
||||||
|
|
||||||
|
env: |
||||||
|
SLEEP_TIME: 30 # Time to sleep between retries |
||||||
|
|
||||||
|
runs: |
||||||
|
using: "composite" |
||||||
|
steps: |
||||||
|
- id: setup1 |
||||||
|
uses: ./.github/workflows/setup |
||||||
|
continue-on-error: true |
||||||
|
with: |
||||||
|
git_lfs: ${{ inputs.git_lfs }} |
||||||
|
is_retried: true |
||||||
|
- if: steps.setup1.outcome == 'failure' |
||||||
|
shell: bash |
||||||
|
run: sleep ${{ env.SLEEP_TIME }} |
||||||
|
- id: setup2 |
||||||
|
if: steps.setup1.outcome == 'failure' |
||||||
|
uses: ./.github/workflows/setup |
||||||
|
continue-on-error: true |
||||||
|
with: |
||||||
|
git_lfs: ${{ inputs.git_lfs }} |
||||||
|
is_retried: true |
||||||
|
- if: steps.setup2.outcome == 'failure' |
||||||
|
shell: bash |
||||||
|
run: sleep ${{ env.SLEEP_TIME }} |
||||||
|
- id: setup3 |
||||||
|
if: steps.setup2.outcome == 'failure' |
||||||
|
uses: ./.github/workflows/setup |
||||||
|
with: |
||||||
|
git_lfs: ${{ inputs.git_lfs }} |
||||||
|
is_retried: true |
Loading…
Reference in new issue