-
-
Notifications
You must be signed in to change notification settings - Fork 204
/
action.yml
70 lines (69 loc) · 2.88 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: "GitHub Tag"
description: "Bump and push git tag on merge"
author: "Mathieu Dutour"
outputs:
new_tag:
description: "Generated tag"
new_version:
description: "Generated tag without the prefix"
previous_tag:
description: "Previous tag (or `0.0.0`)"
previous_version:
description: "The value of the previous tag (or 0.0.0 if none) without the prefix. Note that if custom_tag is set, this will be undefined."
release_type:
description: "The computed release type (`major`, `minor`, `patch` or `custom` - can be prefixed with `pre`)"
changelog:
description: "The conventional changelog since the previous tag"
inputs:
github_token:
description: "Required for permission to tag the repo."
required: true
default_bump:
description: "Which type of bump to use when none explicitly provided when commiting to a release branch (default: `patch`)."
required: false
default: "patch"
default_prerelease_bump:
description: "Which type of bump to use when none explicitly provided when commiting to a prerelease branch (default: `prerelease`)."
required: false
default: "prerelease"
tag_prefix:
description: "A prefix to the tag name (default: `v`)."
required: false
default: "v"
append_to_pre_release_tag:
description: "A suffix to a pre-release tag name (default: `<branch>`)."
required: false
custom_tag:
description: "Custom tag name. If specified, it overrides bump settings."
required: false
custom_release_rules:
description: "Comma separated list of release rules. Format: `<keyword>:<release_type>`. Example: `hotfix:patch,pre-feat:preminor`."
required: false
release_branches:
description: "Comma separated list of branches (bash reg exp accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any tag. Examples: `master` or `.*` or `release.*,hotfix.*,master`..."
required: false
default: "master,main"
pre_release_branches:
description: "Comma separated list of branches (bash reg exp accepted) that will generate pre-release tags."
required: false
commit_sha:
description: "The commit SHA value to add the tag. If specified, it uses this value instead GITHUB_SHA. It could be useful when a previous step merged a branch into github.ref."
required: false
create_annotated_tag:
description: "Boolean to create an annotated tag rather than lightweight."
required: false
default: "false"
fetch_all_tags:
description: "Boolean to fetch all tags for a repo (if false, only the last 100 will be fetched)."
required: false
default: "false"
dry_run:
description: "Do not perform tagging, just calculate next version and changelog, then exit."
required: false
default: "false"
runs:
using: "node20"
main: "lib/main.js"
branding:
icon: "git-merge"
color: "purple"