-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
62 lines (62 loc) · 1.9 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
52
53
54
55
56
57
58
59
60
61
62
name: 'Next Semantic Version'
description: 'Guess the next semantic version only from existing git tags and recently merged pull-requests labels.'
branding:
icon: 'git-pull-request'
color: 'blue'
inputs:
github-token:
description: "GitHub Token"
required: true
log-level:
description: 'Log Level (DEBUG, INFO, WARNING)'
required: false
default: 'INFO'
major-labels:
description: 'Major Labels (coma separated)'
required: false
default: 'major,breaking,Type: Major'
minor-labels:
description: 'Minor Labels (coma separated)'
required: false
default: 'feature,Type: Feature,Type: Minor'
ignore-labels:
description: 'Ignore Labels (coma separated)'
required: false
default: 'Type: Hidden'
dont-increment-if-no-pr:
description: 'Do not increment if no PR found (or only ignored PRs)'
required: false
default: 'false'
repository:
description: "Repository"
required: true
repository-owner:
description: "Repository owner"
required: true
consider-also-non-merged-prs:
description: "Consider also non-merged PRs"
required: false
default: 'false'
tag-regex:
description: "Regex to match tags"
required: false
default: ''
outputs:
latest-version:
description: 'Latest version'
next-version:
description: 'Next version'
runs:
using: 'docker'
image: 'Dockerfile'
env:
LOG_LEVEL: ${{ inputs.log-level }}
GITHUB_TOKEN: ${{ inputs.github-token }}
GITHUB_REPOSITORY: ${{ inputs.repository }}
GITHUB_REPOSITORY_OWNER: ${{ inputs.repository-owner }}
GNSV_MAJOR_LABELS: ${{ inputs.major-labels }}
GNSV_MINOR_LABELS: ${{ inputs.minor-labels }}
GNSV_IGNORE_LABELS: ${{ inputs.ignore-labels }}
GNSV_DONT_INCREMENT_IF_NO_PR: ${{ inputs.dont-increment-if-no-pr }}
GNSV_CONSIDER_ALSO_NON_MERGED_PRS: ${{ inputs.consider-also-non-merged-prs }}
GNSV_TAG_REGEX: ${{ inputs.tag-regex }}