mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
ci: update clear-caches.yml (#11875)
This commit is contained in:
parent
41ab6337d4
commit
f10323bb09
13
.github/workflows/clear-caches.yml
vendored
13
.github/workflows/clear-caches.yml
vendored
@ -14,15 +14,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clear Firefox cache
|
- name: Clear Firefox cache
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@60a0d83 # v7.0.1
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
console.log("Querying")
|
console.log("Querying")
|
||||||
const caches = await github.rest.actions.getActionsCacheList({
|
|
||||||
|
const caches = await github.paginate(
|
||||||
|
github.rest.actions.getActionsCacheList,
|
||||||
|
{
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
})
|
}
|
||||||
for (const cache of caches.data.actions_caches) {
|
)
|
||||||
|
console.log(caches.length)
|
||||||
|
for (const cache of caches) {
|
||||||
if (cache.key.toLowerCase().startsWith('firefox')) {
|
if (cache.key.toLowerCase().startsWith('firefox')) {
|
||||||
console.log(cache)
|
console.log(cache)
|
||||||
github.rest.actions.deleteActionsCacheById({
|
github.rest.actions.deleteActionsCacheById({
|
||||||
|
Loading…
Reference in New Issue
Block a user