Skip to content

Commit

Permalink
purge
Browse files Browse the repository at this point in the history
  • Loading branch information
elpdt852 committed Mar 24, 2024
1 parent 961b49c commit 6d95cc5
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d95cc5

Please sign in to comment.