2022-10-05 09:52:42 +00:00
|
|
|
name: Clear cache weekly
|
|
|
|
|
|
|
|
on:
|
2023-01-17 11:12:00 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
pattern:
|
2023-09-26 15:54:44 +00:00
|
|
|
description: "pattern 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'
|
2023-07-03 14:37:16 +00:00
|
|
|
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@v0.9.0
|
2022-10-05 09:52:42 +00:00
|
|
|
with:
|
2023-09-25 12:34:41 +00:00
|
|
|
pattern: "latest|docs"
|
2023-01-17 11:12:00 +00:00
|
|
|
|
|
|
|
direct-clear:
|
|
|
|
if: github.event_name == 'workflow_dispatch'
|
2023-07-03 14:37:16 +00:00
|
|
|
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@v0.9.0
|
2023-01-17 11:12:00 +00:00
|
|
|
with:
|
|
|
|
pattern: ${{ inputs.pattern }}
|