This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
forked from mathieudutour/github-tag-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
64 lines (63 loc) · 2.47 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
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`)"
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 (default: `patch`)."
required: false
default: "patch"
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
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"
scopes:
description: "Comma separated list of commit scopes that will be used to filter commits when determining the new version. If left blank, will consider all commits."
required: false
runs:
using: "node16"
main: "dist/main.js"
branding:
icon: "git-merge"
color: "purple"