mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-23 23:11:18 +00:00
* perf(ci): harden persistent test caches * ci: document trusted cache cleanup trigger * ci: harden composite cache inputs * perf(ci): isolate Node build bytecode cache
22 lines
621 B
YAML
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
|