-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
32 lines (28 loc) · 932 Bytes
/
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
name: Get Most Recent Tag Version
description: Get version and number of additional commits from most recent git tag that is reachable from the last commit
inputs:
match:
description: 'Pattern (glob) to match the latest tag to extract the version from.'
default: '*'
required: false
bump:
description: "Type of the bump ('major', 'minor', 'patch' or 'none' for no bump)."
required: false
default: 'none'
format:
description: "Output version format '{prefix}{major}.{minor}.{patch}-{prerelease}+{metadata}#{commits}@{hash}'"
required: false
default: '{major}.{minor}.{patch}-{prerelease}+{metadata}'
trim:
description: "Format trim fields 'prefix|prerelease|metadata|patch|commits'"
required: false
default: 'prerelease|metadata|commits'
outputs:
version:
description: Formatted version
runs:
using: node16
main: dist/index.js
branding:
color: blue
icon: tag