Purge the oldest TRAP cache with gh actions-cache cli
This commit is contained in:
parent
3b459b5ab6
commit
af74130544
Notes:
git
2025-05-14 06:09:06 +00:00
10
.github/workflows/codeql-analysis.yml
vendored
10
.github/workflows/codeql-analysis.yml
vendored
@ -50,7 +50,6 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
enable_install_doc: no
|
enable_install_doc: no
|
||||||
CODEQL_ACTION_CLEANUP_TRAP_CACHES: true
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -81,7 +80,6 @@ jobs:
|
|||||||
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
|
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
dependency-caching: false
|
|
||||||
debug: true
|
debug: true
|
||||||
|
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
@ -122,3 +120,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sarif_file: sarif-results/${{ matrix.language }}.sarif
|
sarif_file: sarif-results/${{ matrix.language }}.sarif
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Purge the oldest TRAP cache
|
||||||
|
if: ${{ github.repository == 'ruby/ruby' && matrix.language == 'cpp'}}
|
||||||
|
run: |
|
||||||
|
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:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user