diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e75a8e9..2651cf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,9 +14,24 @@ jobs: linter: - golangci-lint steps: - - uses: MyAlbum/purge-cache@v1 + - name: Clear cache + uses: actions/github-script@v6 with: - max-age: 0 + script: | + console.log("About to clear") + const caches = await github.rest.actions.getActionsCacheList({ + owner: context.repo.owner, + repo: context.repo.repo, + }) + for (const cache of caches.data.actions_caches) { + console.log(cache) + github.rest.actions.deleteActionsCacheById({ + owner: context.repo.owner, + repo: context.repo.repo, + cache_id: cache.id, + }) + } + console.log("Clear completed") # - uses: actions/checkout@v4 # - name: Setup Nix # uses: ./.github/actions/setup-nix