-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
31 lines (31 loc) · 991 Bytes
/
action.yml
File metadata and controls
31 lines (31 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Clean Cache
description: Cleans up caches for GitHub Actions based on branch or PR ref
author: Opengrabeso
branding:
icon: trash
color: green
runs:
using: node24
main: 'dist/index.cjs'
post: 'dist/post.cjs'
inputs:
token:
required: true
description: Authenticated GitHub token.
default: '${{ github.token }}'
ref:
description: The full Git reference for which the cache should be cleaned. Use refs/pull/<number>/merge for PRs.
When not present, context is detected automatically and PR, branch or both caches are cleaned.
includePrefix:
description: Caches with keys matching this as prefix will be deleted, oldest created first.
except:
description: Key which should not be deleted
post:
description: Run the cleanup post workflow
default: 'false'
verbose:
description: Log all existing caches with timestamps
default: 'false'
keep:
description: Number of most recent items to keep
default: '0'