-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (34 loc) · 1.54 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
name: 'Is Release Commit'
description: 'Check whether the commit which is currently built is a release commit.'
branding:
icon: 'package'
color: 'orange'
inputs:
release-tag-prefix:
description: 'A prefix to filter tag names. Set to "" (empty string) if all tags shall be taken into account'
default: 'v'
fallback-tag:
description: 'The fallback if no release tag could have been found.'
default: 'v0.0.0'
outputs:
latest-release-tag:
description: 'The content of the latest release tag. E.g. "v1.2.3"'
is-fallback-tag:
description: 'Indicates whether the `latest-release-tag` is the actually found (`false`) or the fallback tag (`true`)'
is-release-commit:
description: 'Whether the current commit is a release commit (`true`) or not (`false`)'
version:
description: 'The actual version extracted from the git tag ("v1.2.3" -> "1.2.3")'
major-version:
description: 'The major part of the version extracted from the git tag ("v1.2.3" -> "1")'
minor-version:
description: 'The minor part of the version extracted from the git tag ("v1.2.3" -> "2")'
bugfix-version:
description: 'The bugfix part of the version extracted from the git tag ("v1.2.3" -> "3")'
next-semantic-version:
description: 'If is-release-commit is false, the next semantic version based on the commits since the last release is returned. Otherwise, the currently built version is returned.'
current-commit-sha:
description: 'The short SHA of the current commit, i.e. "d09e6f6"'
runs:
using: 'node20'
main: 'dist/action.js'