forked from salsify/action-detect-and-tag-new-version
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
38 lines (38 loc) · 1.35 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
name: Detect and Tag New Version
description: >
Tag new versions in your repository based on changes to its contents,
like a `package.json` or `.gemspec` file.
author: dfreeman
inputs:
version-command:
description: >
A shell command whose output when executed will be considered the version
of your repository for the commit at which it's currently checked out.
create-tag:
description: >
Whether or not a tag should be created if a new version is detected.
default: true
tag-template:
description: >
A template for producing a tag name from the current version of your
repository, replacing '{VERSION}' with the deteced version.
default: 'v{VERSION}'
tag-annotation-template:
description: >
A template for producing a tag annotation from the current version of your
repository, replacing '{VERSION}' with the deteced version. May be set to
an empty string to produce a lightweight (i.e. annotation-less) tag.
default: 'Released version {VERSION}'
outputs:
previous-version:
description: the detected previous version of this repository
current-version:
description: the detected current version of this repository
tag:
description: if a new tag is created, this output will contain its name
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: tag
color: purple