forked from mirror/qmk_firmware
Only attempt cache deletion if exists (#26124)
This commit is contained in:
@@ -129,7 +129,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
if: steps.cache.outputs.cache-hit
|
if: steps.cache.outputs.cache-hit
|
||||||
run: gh cache delete --ref ${{ github.ref }} ${{ steps.cache.outputs.cache-primary-key }}
|
run: |
|
||||||
|
count=$(gh cache list --ref ${{ github.ref }} ${{ steps.cache.outputs.cache-primary-key }} --json id | jq length)
|
||||||
|
if [ $count -gt 0 ]; then
|
||||||
|
gh cache delete --ref ${{ github.ref }} ${{ steps.cache.outputs.cache-primary-key }}
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Save Cache
|
- name: Save Cache
|
||||||
uses: actions/cache/save@v5
|
uses: actions/cache/save@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user