Retry on cache failure (2) (#1422)
This commit is contained in:
14
.github/workflows/composites/cache/action.yaml
vendored
14
.github/workflows/composites/cache/action.yaml
vendored
@@ -3,9 +3,13 @@ description: cache
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: buildjet/cache@v3
|
||||
|
||||
- uses: Wandalen/wretry.action@master
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
|
||||
attempt_limit: 3
|
||||
action: buildjet/cache@v3
|
||||
with: |
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user