forked from prymitive/pint-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (49 loc) · 1.32 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
45
46
47
48
49
50
51
name: "pint action"
description: "Validate Prometheus rules using cloudflare/pint"
branding:
color: orange
icon: bell
inputs:
token:
description: "Github token to use"
required: true
workdir:
description: "Working directory to use"
required: false
default: "."
config:
description: "Config file to use"
required: false
default: ""
loglevel:
description: "Log level to use"
required: false
default: ""
minSeverity:
description: "Minimum severity to report"
required: false
default: ""
requireOwner:
description: "Require all rules to have an owner set via comment"
required: false
default: ""
pr_target_repo:
description: "Required for pull requests from forks - target PR repository"
required: false
default: ""
pr_source_repo:
description: "Required for pull requests from forks - source PR repository"
required: false
default: ""
runs:
using: "docker"
image: "Dockerfile"
env:
GITHUB_AUTH_TOKEN: ${{ inputs.token }}
CONFIG: ${{ inputs.config }}
WORKDIR: ${{ inputs.workdir }}
LOGLEVEL: ${{ inputs.loglevel }}
MIN_SEVERITY: ${{ inputs.minSeverity }}
REQUIRE_OWNER: ${{ inputs.requireOwner }}
PULL_REQUEST_TARGET_REPO: ${{ inputs.pr_target_repo }}
PULL_REQUEST_SOURCE_REPO: ${{ inputs.pr_source_repo }}