Fix cache list command in CI workflow

This commit is contained in:
Joel Challis 2026-04-02 08:23:41 +01:00 committed by GitHub
parent e4b998ccb0
commit 1426eedfc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
if: steps.cache.outputs.cache-hit
run: |
count=$(gh cache list --ref ${{ github.ref }} ${{ steps.cache.outputs.cache-primary-key }} --json id | jq length)
count=$(gh cache list --ref ${{ github.ref }} --key ${{ 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