Always save cache (#451)
Always save cache, even if one of the scripts returned an error. Also use a workflow to clear the cache instead of relying on josStorer/get-current-time@v2.
This commit is contained in:
18
.github/workflows/clear-cache.yml
vendored
Normal file
18
.github/workflows/clear-cache.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Clear Cache
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
|
||||
|
||||
jobs:
|
||||
clear-cache:
|
||||
name: Clear Cache
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clear all caches
|
||||
run: gh cache delete --all --succeed-on-no-caches
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
OWNER: ${{ github.repository_owner }}
|
||||
REPO: ${{ github.event.repository.name }}
|
||||
Reference in New Issue
Block a user