-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
144 lines (144 loc) · 5.08 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: 'Semver Info Action'
description: 'Cleans, parses, and compares semantic versions, providing essential insights into versioning, stability, and compatibility'
inputs:
semver-a:
description: 'Semver A to process'
required: false
default: ''
semver-b:
description: 'Semver B to process - will be compared against the first semver'
required: false
default: ''
fallBack-semver-a:
description: 'The fallback version A in case version A is not valid'
required: false
default: ''
fallBack-semver-b:
description: 'The fallback version B in case version B is not valid'
required: false
default: ''
increase-a:
description: 'Increase version A before processing [major, minor, patch, rc]'
required: false
default: ''
increase-b:
description: 'Increase version B before processing [major, minor, patch, rc]'
required: false
default: ''
use-version-txt:
description: 'Overwrites input semver-b with the version from version.txt file - if the file exists and the version is valid'
required: false
default: 'false'
null-to-empty:
description: 'converts null to empty string'
required: false
default: 'true'
outputs:
clean_semver:
description: 'The cleaned and normalized version without any prefix (highest semver wins)'
clean_semver_a:
description: 'The cleaned and normalized version A without any prefix'
clean_semver_b:
description: 'The cleaned and normalized version B without any prefix'
is_greater_a:
description: 'Whether A is greater than B'
is_smaller_a:
description: 'Whether A is smaller than B'
is_greater_b:
description: 'Whether B is greater than A'
is_smaller_b:
description: 'Whether B is smaller than A'
change_type:
description: 'Diff A and B change [major, minor, patch, rc]'
is_major_change:
description: 'If diff A and B is a major change'
is_minor_change:
description: 'If diff A and B is a minor change'
is_patch_change:
description: 'If diff A and B is a patch change'
is_rc_change:
description: 'If diff A and B is a rc (release candidate) change'
is_valid_semver:
description: 'Whether the semver is valid (highest semver wins)'
is_valid_semver_a:
description: 'Whether semver A is valid'
is_valid_semver_b:
description: 'Whether semver B is valid'
is_stable:
description: 'Whether the version is stable (doesn`t contain any pre-release tag) (highest semver wins)'
is_stable_a:
description: 'Whether version A is stable (doesn`t contain any pre-release tag)'
is_stable_b:
description: 'Whether version B is stable (doesn`t contain any pre-release tag)'
major:
description: 'The major version of provided semver (highest semver wins)'
major_a:
description: 'The major version of A'
major_b:
description: 'The major version of B'
minor:
description: 'The minor version of provided semver (highest semver wins)'
minor_a:
description: 'The minor version of A'
minor_b:
description: 'The minor version of B'
patch:
description: 'The patch version of provided semver (highest semver wins)'
patch_a:
description: 'The patch version of A'
patch_b:
description: 'The patch version of B'
rc:
description: 'The release candidate version of provided semver (highest semver wins)'
rc_a:
description: 'The release candidate version of A'
rc_b:
description: 'The release candidate version of B'
rc_str:
description: 'The prefix of the release candidate version (highest semver wins)'
rc_str_a:
description: 'The prefix of the release candidate version of A'
rc_str_b:
description: 'The prefix of the release candidate version of B'
next_major:
description: 'The next major version of provided semver (highest semver wins)'
next_major_a:
description: 'The next major version of A'
next_major_b:
description: 'The next major version of B'
next_minor:
description: 'The next minor version of provided semver (highest semver wins)'
next_minor_a:
description: 'The next minor version of A'
next_minor_b:
description: 'The next minor version of B'
next_patch:
description: 'The next patch version of provided semver (highest semver wins)'
next_patch_a:
description: 'The next patch version of A'
next_patch_b:
description: 'The next patch version of B'
next_rc:
description: 'The next rc version of provided semver (highest semver wins)'
next_rc_a:
description: 'The next rc version of A'
next_rc_b:
description: 'The next rc version of B'
original-semver-a:
description: 'Semver A to process'
original-semver-b:
description: 'Semver B to process - will be compared with first semver'
fallBack-semver-a:
description: 'The fallback version A in case the original version A is not valid'
fallBack-semver-b:
description: 'The fallback version B in case the original version B is not valid'
version_txt:
description: 'semver from version file'
version_txt_path:
description: 'path of version file'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: file-text
color: purple