-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
71 lines (71 loc) · 2.52 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
67
68
69
70
71
name: 'Semver tags'
description: 'Gets the previous semver tag and calculates the next version. Optionally apply the version as a new tag.'
branding:
icon: 'arrow-up-circle'
color: 'gray-dark'
inputs:
GITHUB_TOKEN:
description: The github token.
required: true
tag-prefix:
description: 'A value prefixed to the version number when tagging the repo.'
required: false
default: ''
default-version:
description: 'The version number that will be used if no semver tag is found.'
required: false
default: '1.0.0'
incremented-value:
description: 'What value should be incremented?'
required: false
default: patch
create-release:
description: 'A value to set whether to create a release along with the tag. Values can be true|false|branch_name.'
required: false
default: true
prerelease:
description: 'The prerelease tag to use.'
required: false
metadata:
description: 'The metadata to use.'
required: false
previous-major-version:
description: 'A value to use for the major version when searching for the previous version tag.'
required: false
previous-minor-version:
description: 'A value to use for the minor version when searching for the previous version tag.'
required: false
previous-prerelease:
description: 'A value to use for the prerelease value when searching for the previous version tag.'
required: false
previous-metadata:
description: 'A value to use for the metadata value when searching for the previous version tag.'
required: false
add-minor-tag:
description: 'Adds/updates a tag for the major.minor version if the semver version is not a prerelease.'
required: false
default: false
add-major-tag:
description: 'Adds/updates a tag for the major version if the semver version is not a prerelease.'
required: false
default: false
dry-run:
description: 'Performs a version calculation without committing a tag.'
required: false
default: false
outputs:
semantic-version:
description: 'The calculated version number.'
core-version:
description: 'The core version part of the semantic version.'
major-version:
description: 'The major version part of the semantic version.'
minor-version:
description: 'The minor version part of the semantic version.'
patch-version:
description: 'The patch version part of the semantic version.'
previous-version:
description: 'The previous version number.'
runs:
using: 'node12'
main: 'dist/index.js'