mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 13:34:01 +08:00
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
This commit is contained in:
11
.github/workflows/setup/action.yaml
vendored
11
.github/workflows/setup/action.yaml
vendored
@@ -5,10 +5,21 @@ inputs:
|
||||
description: 'Whether or not to pull the git lfs'
|
||||
required: false
|
||||
default: 'true'
|
||||
is_retried:
|
||||
description: 'A mock param that asserts that we use the setup-with-retry instead of this action directly'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
# assert that this action is retried using the setup-with-retry
|
||||
- shell: bash
|
||||
if: ${{ inputs.is_retried == 'false' }}
|
||||
run: |
|
||||
echo "You should not run this action directly. Use setup-with-retry instead"
|
||||
exit 1
|
||||
|
||||
# do this after checkout to ensure our custom LFS config is used to pull from GitLab
|
||||
- shell: bash
|
||||
if: ${{ inputs.git_lfs == 'true' }}
|
||||
|
||||
Reference in New Issue
Block a user