Files
openclaw/.github/workflows/pr-cache-cleanup.yml
Peter Steinberger b78cf56349 improve(ci): persist warm Vitest and Node caches (#109425)
* perf(ci): harden persistent test caches

* ci: document trusted cache cleanup trigger

* ci: harden composite cache inputs

* perf(ci): isolate Node build bytecode cache
2026-07-16 17:22:28 -07:00

22 lines
621 B
YAML

name: PR Cache Cleanup
on:
pull_request_target: # zizmor: ignore[dangerous-triggers] trusted base workflow only; no checkout or untrusted PR code execution
types: [closed]
permissions:
actions: write
contents: read
jobs:
cleanup:
if: github.repository == 'openclaw/openclaw'
runs-on: ubuntu-24.04
timeout-minutes: 5
env:
GH_TOKEN: ${{ github.token }}
PR_CACHE_REF: refs/pull/${{ github.event.pull_request.number }}/merge
steps:
- name: Delete closed PR caches
run: gh cache delete --repo "$GITHUB_REPOSITORY" --all --ref "$PR_CACHE_REF" --succeed-on-no-caches