mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
use token for cache controller
This commit is contained in:
parent
65191eb002
commit
8f8cfdf2fa
1 changed files with 2 additions and 1 deletions
3
.github/workflows/wipe_cache.yml
vendored
3
.github/workflows/wipe_cache.yml
vendored
|
@ -13,13 +13,14 @@ jobs:
|
|||
- name: Clear cache
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{ secrets.cache_controller }}
|
||||
script: |
|
||||
console.log("About to clear")
|
||||
|
||||
while (true) {
|
||||
const caches = await github.rest.actions.getActionsCacheList({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
repo: context.repo.repo
|
||||
})
|
||||
if (caches.data.actions_caches.length === 0) {
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue