forked from PaulHatch/semantic-version
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
66 lines (66 loc) · 2.61 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
63
64
65
66
name: "Git Semantic Version (via branches)"
description: "Determines version of a repo based on git history"
branding:
icon: "layers"
color: "blue"
inputs:
test_value:
description: "Set to specify what patterns are applied against"
required: true
default: "."
use_test_value:
description: "Look at `test_value` to derive how the version is bumped, instead of commit messages"
required: true
default: "false"
branch:
description: "Set to specify a specific branch, default is the current HEAD"
required: true
default: "HEAD"
tag_prefix:
description: "The prefix to use to identify tags"
required: false
default: "v"
major_pattern:
description: "A string which, if present in a git commit, indicates that a change represents a major (breaking) change. Wrap with '/' to match using a regular expression."
required: true
default: "(MAJOR)"
minor_pattern:
description: "A string which, if present in a git commit, indicates that a change represents a minor (feature) change. Wrap with '/' to match using a regular expression."
required: true
default: "(MINOR)"
format:
description: "Pattern to use when formatting output version"
required: true
default: "${major}.${minor}.${patch}"
change_path:
description: "Path to check for changes. If any changes are detected in the path the 'changed' output will true. Enter multiple paths separated by spaces."
required: false
namespace:
description: "Use to create a named sub-version. This value will be appended to tags created for this version."
required: false
short_tags:
description: "If false, only full versions, i.e. 'v1.0.0', will be supported as tags. If true, tags will support truncated minor and patch versions such as 'v1' (default)."
required: true
default: "true"
bump_each_commit:
description: "If true, every commit will be treated as a bump to the version."
required: true
default: "false"
outputs:
major:
description: "Current major number"
minor:
description: "Current minor number"
patch:
description: "Current patch number"
increment:
description: "An additional value indicating the number of commits for the current version"
version:
description: "The version result, in the format {major}.{minor}.{patch}"
version_tag:
description: "The version tag"
changed:
description: "Indicates whether there was a change since the last version if change_path was specified. If no change_path was specified this value will always be true since the entire repo is considered."
runs:
using: "node16"
main: "dist/index.js"