소스 검색

use token for cache controller

Jonathan Kelley 1 년 전
부모
커밋
8f8cfdf2fa
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      .github/workflows/wipe_cache.yml

+ 2 - 1
.github/workflows/wipe_cache.yml

@@ -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