This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
forked from extenda/actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
40 lines (40 loc) · 1.46 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
name: Conventional version
description: |
Determine the project version based on conventional commit conventions.
inputs:
tag-prefix:
description: The release tag prefix
required: true
default: v
version-suffix:
description: A suffix to append to the project version, for example -SNAPSHOT
required: false
sha-size:
description: Wanted size of the commit SHA. Might return a longer SHA to be unambiguous
required: false
build-number:
description: Use output from build step einaregilsson/build-number@v2.
required: false
outputs:
version:
description: The project version to be built now
release-tag:
description: The latest tagged release or v0.0.0 if no tagged release exists.
release-version:
description: The latest semantic release version or 0.0.0 if no release exists.
branch-name:
description: Branch name from github.ref where 'refs/heads/' at the beginning is removed.
branch-name-friendly:
description: Branch name where all '/' and '_' are replaced with '-'
is-prerelease:
description: Boolean to indicate if the branch is a prerelease or not.
short-sha:
description: Short commit SHA. Shortest unambiguous SHA1 even if a smaller shaSize is used.
composed-version-string:
description: |
Master=<version>,
Develop=<version>-<branch-name-friendly>-<build-number>-<short-sha>,
Feature=<version>-<branch-name-friendly>-<short-sha>
runs:
using: node12
main: dist/index.js