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:
Justin Newberry
2023-09-06 11:11:15 -07:00
committed by GitHub
parent d3c5ac5545
commit 917f71d446
5 changed files with 63 additions and 13 deletions

View File

@@ -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' }}