-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
44 lines (38 loc) · 1.13 KB
/
action.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Clean Workflow Action"
description: "Clean workflow run logs based on configuration"
author: igorjs
branding:
icon: "chevron-right"
color: "yellow"
inputs:
token:
description: "The token to use to access the GitHub API"
required: false
default: ${{ github.token }}
owner:
description: "The owner of the repository"
required: false
default: ${{ github.repository_owner }}
repo:
description: "The name of the repository"
required: false
default: ${{ github.repository }}
days_old:
description: "The amount of days old to delete"
required: false
default: "7"
deprecationMessage: "The parameter days_old is deprecated and will be removed in the next update. Please use runs_older_than instead."
runs_older_than:
description: "The amount of days for a workflow run, since its last rerun, be considered old"
required: false
default: "7"
runs_to_keep:
description: "The amount of latest workflows runs to keep"
required: false
default: "0"
outputs:
result:
description: "The number of workflows deleted"
runs:
using: "node20"
main: "dist/index.js"