Skip to content

Commit 3ddfca7

Browse files
committed
adds clear cache step
1 parent 530c136 commit 3ddfca7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/code_reviewer.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,25 @@ jobs:
1313
- name: Checkout Repo
1414
uses: actions/checkout@v3
1515

16+
- name: Clear cache
17+
uses: actions/github-script@v6
18+
with:
19+
script: |
20+
console.log("About to clear")
21+
const caches = await github.rest.actions.getActionsCacheList({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
})
25+
for (const cache of caches.data.actions_caches) {
26+
console.log(cache)
27+
github.rest.actions.deleteActionsCacheById({
28+
owner: context.repo.owner,
29+
repo: context.repo.repo,
30+
cache_id: cache.id,
31+
})
32+
}
33+
console.log("Clear completed")
34+
1635
- name: TC AI PR Reviewer
1736
uses: topcoder-platform/tc-ai-pr-reviewer@master
1837
with:

0 commit comments

Comments
 (0)