mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 14:16:39 +08:00
e468072f1f
* 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: 917f71d4460bf5503190ade72a3fa760b64dca66
39 lines
999 B
YAML
39 lines
999 B
YAML
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 |