Skip to content

Commit 8f428a6

Browse files
dispatch cache clean (#16393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a9a6365 commit 8f428a6

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

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

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,24 @@ on:
44
schedule:
55
# on Sundays
66
- cron: "0 0 * * 0"
7+
workflow_dispatch:
8+
inputs:
9+
pattern:
10+
description: 'patter for cleaning cache'
11+
default: "pip|conda"
12+
required: false
13+
type: string
714

815
jobs:
9-
clear-cache:
10-
if: github.repository_owner == 'Lightning-AI'
11-
uses: Lightning-AI/utilities/.github/workflows/clear-cache.yml@main
16+
17+
cron-clear:
18+
if: github.event_name == 'schedule'
19+
uses: Lightning-AI/utilities/.github/workflows/[email protected]
1220
with:
1321
pattern: 'latest|docs'
22+
23+
direct-clear:
24+
if: github.event_name == 'workflow_dispatch'
25+
uses: Lightning-AI/utilities/.github/workflows/[email protected]
26+
with:
27+
pattern: ${{ inputs.pattern }}

0 commit comments

Comments
 (0)