github-tag-action/action.yml

44 lines
1.4 KiB
YAML

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`)"
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"
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"
create_annotated_tag:
description: "Boolean to create an annotated tag rather than lightweight"
required: false
default: false
dry_run:
description: "Do not perform taging, just calculate next version and changelog, then exit"
required: false
default: false
runs:
using: "node12"
main: "lib/main.js"
branding:
icon: "git-merge"
color: "purple"