lightning/.github/workflows/schedule-clear-cache.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
617 B
YAML
Raw Normal View History

name: Clear cache weekly
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:
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 }}