sandbox/clear_gh-actions_cache.R

#clear github actions caches
#list cache IDs
ghjson = system(paste0('curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ',Sys.getenv('GITHUB_PAT'),'" https://api.github.com/repos/pboesu/moultmcmc/actions/caches'))

#delete cache IDs (adjust loop index from above)
for (id in c(443:446,451,453:457)) {
ghjson = system(paste0('curl -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ',Sys.getenv('GITHUB_PAT'),'" https://api.github.com/repos/pboesu/moultmcmc/actions/caches/',id))
}
pboesu/moultmcmc documentation built on Feb. 19, 2023, 6:03 a.m.