Use gh cache

This commit is contained in:
Hiroshi SHIBATA 2025-05-14 14:07:38 +09:00
parent af74130544
commit a7af85a7bd
Notes: git 2025-05-14 06:09:05 +00:00

View File

@ -123,8 +123,6 @@ jobs:
- name: Purge the oldest TRAP cache - name: Purge the oldest TRAP cache
if: ${{ github.repository == 'ruby/ruby' && matrix.language == 'cpp'}} if: ${{ github.repository == 'ruby/ruby' && matrix.language == 'cpp'}}
run: | run: gh cache list --key codeql --order asc --limit 1 --json key --jq '.[].key' | xargs -I{} gh cache delete {}
gh extension install actions/gh-actions-cache
gh actions-cache list --key codeql --order asc --limit 1 | cut -f 1 | xargs -I{} gh actions-cache delete {} --confirm
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}