dispatch cache clean (#16393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
a9a6365e8f
commit
8f428a676a
|
@ -4,10 +4,24 @@ on:
|
|||
schedule:
|
||||
# on Sundays
|
||||
- cron: "0 0 * * 0"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
pattern:
|
||||
description: 'patter for cleaning cache'
|
||||
default: "pip|conda"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
clear-cache:
|
||||
if: github.repository_owner == 'Lightning-AI'
|
||||
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@main
|
||||
|
||||
cron-clear:
|
||||
if: github.event_name == 'schedule'
|
||||
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@v0.5.0
|
||||
with:
|
||||
pattern: 'latest|docs'
|
||||
|
||||
direct-clear:
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@v0.5.0
|
||||
with:
|
||||
pattern: ${{ inputs.pattern }}
|
||||
|
|
Loading…
Reference in New Issue