This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
generated from im-open/javascript-action-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (39 loc) · 1.82 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
name: 'git-tag'
description: 'An action that can retrieve the current git version tag and optionally increment or push the new version to GitHub'
inputs:
github-token:
description: 'Used to create the new tag. Value is generally: secrets.GITHUB_TOKEN. Required when pushing a new tag.'
required: false
increment-major:
description: 'Flag to indicate whether to increment the major version. When true, the major is incremented and minor/patch are set to 0. Defaults to false.'
required: true
default: 'false'
increment-minor:
description: 'Flag to indicate whether to increment the minor version. When true, the minor is incremented and patch is set to 0. Defaults to false.'
required: true
default: 'false'
increment-patch:
description: 'Flag to indicate whether to increment the patch version. Defaults to false.'
required: true
default: 'false'
push-new-tag-to-repo:
description: 'Flag to indicate whether to push a new incremented tag to GitHub. If none of the major/minor/patch flags are set, this will not happen. Defaults to false.'
required: true
default: 'false'
separator:
description: 'The separator the version tag uses. Defaults to "."'
required: true
default: '.'
prefix:
description: 'The prefix of the git tags if it has one. Commonly used when tags contain the project in addition to the major.minor.patch.'
required: false
includePrefixInOutput:
description: 'Flag indicating whether the prefix should be included in the TAG output or TAG environment variable if a prefix is present.'
required: true
default: 'false'
outputs:
TAG:
description: 'If any of the increment tags are set, it returns the incremented tag otherwise it returns the latest tag for the repository.'
runs:
using: 'node12'
main: 'dist/index.js'