-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathaction.yml
More file actions
55 lines (52 loc) · 1.84 KB
/
action.yml
File metadata and controls
55 lines (52 loc) · 1.84 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
name: Compute Tag
description: Compute the next tag based on the previous tag and the version scheme
author: Craig Day
branding:
color: purple
icon: tag
runs:
using: node24
main: action.js
inputs:
github_token:
description: A Github token for the repo, usually `{{ github.token }}`.
required: true
tag:
description: >
A manual tag to compute the next version of. If not specified, it will fetch the most recent
tag for the repo.
required: false
branch:
description: >
The branch to find compute the tag for. This requires iteration of all tags for the repo and
the commits for the branch to find a tag for a commit on the branch. For large repositories
this can be very slow. It is highly recommended that `github_token` be supplied to prevent
rate limit errors when searching.
required: false
tag_fetch_depth:
description: The number of most recent tags to fetch when attempting to find a match on the branch.
required: false
default: 10
version_scheme:
description: The versioning scheme to use. Currently only supports `continuous` or `semantic`.
required: false
default: semantic
version_type:
description: Is this a major, minor, patch, or prerelease bump?
required: false
default: prerelease
prerelease_suffix:
description: What to annotate a prerelease version tag with.
required: false
default: 'beta'
tag_prefix:
description: >
Prefix for tags. When set, only tags starting with this prefix are considered
for version computation, and the prefix is applied to the computed next tag.
When unset, existing behavior is preserved (auto-detects 'v' prefix).
required: false
outputs:
next_tag:
description: The computed next tag to be created
previous_tag:
description: The tag that was used to compute next_tag