mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 05:24:58 +09:00
Fix Docker CI by clearing scope/manifest GHA cache entries, not just blob entries (#3404)
Fix clear-docker-cache to also delete scope/manifest GHA cache entries Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/bc1342e9-112e-492f-bf58-7e9e92a67e5e Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
This commit is contained in:
1 parent
e9602e15a1
commit
c5f289082f
1 file changed
+2
-1
@@ -125,7 +125,8 @@ jobs:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh api --paginate "/repos/${{ github.repository }}/actions/caches" \
|
||||
--jq '.actions_caches[] | select(.key | startswith("buildkit-ghcache")) | .id' \
|
||||
--jq --arg ref "${{ github.ref_name }}" \
|
||||
'.actions_caches[] | select(.key | startswith("buildkit-ghcache") or startswith($ref + "-linux/")) | .id' \
|
||||
| xargs -r -I{} gh api -X DELETE "/repos/${{ github.repository }}/actions/caches/{}" \
|
||||
|| true
|
||||
|
||||
|
||||
Reference in new issue
Block a user