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

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

25 lines
564 B
YAML
Raw Normal View History

name: Clear cache weekly
on:
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.8.0
with:
pattern: 'latest|docs'
direct-clear:
if: github.event_name == 'workflow_dispatch'
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@v0.8.0
with:
pattern: ${{ inputs.pattern }}