Skip to content

Commit a7af85a

Browse files
committed
Use gh cache
1 parent af74130 commit a7af85a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ jobs:
123123

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

0 commit comments

Comments
 (0)