2022-10-05 09:52:42 +00:00
|
|
|
name: Clear cache weekly
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# on Sundays
|
|
|
|
- cron: "0 0 * * 0"
|
2023-01-17 11:12:00 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
pattern:
|
|
|
|
description: 'patter for cleaning cache'
|
2023-02-07 15:37:34 +00:00
|
|
|
default: "pip-|conda"
|
2023-01-17 11:12:00 +00:00
|
|
|
required: false
|
|
|
|
type: string
|
2022-10-05 09:52:42 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-01-17 11:12:00 +00:00
|
|
|
|
|
|
|
cron-clear:
|
|
|
|
if: github.event_name == 'schedule'
|
|
|
|
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@v0.5.0
|
2022-10-05 09:52:42 +00:00
|
|
|
with:
|
|
|
|
pattern: 'latest|docs'
|
2023-01-17 11:12:00 +00:00
|
|
|
|
|
|
|
direct-clear:
|
|
|
|
if: github.event_name == 'workflow_dispatch'
|
|
|
|
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@v0.5.0
|
|
|
|
with:
|
|
|
|
pattern: ${{ inputs.pattern }}
|