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:
Jirka Borovec 2023-01-17 20:12:00 +09:00 committed by GitHub
parent a9a6365e8f
commit 8f428a676a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 3 deletions

View File

@ -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 }}