-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
29 lines (28 loc) · 1.27 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
name: 'merge-bump-release'
description: 'GitHub action to be applied on merged pull-request, to bump a semver and create a new release'
inputs:
github_token:
description: 'Secret GitHub token'
required: true
tag_prefix:
description: 'A prefix to add to the tag, defaults to "v"'
required: false
default: ''
bump:
description: 'Bump type to determine which part of the SemVer will be increased. Can be one of: minor/major/patch. Will default to patch, unless other mechanisms of determining these were defined'
required: false
infer_bump_from_commit:
description: 'If set to true, looks for major, minor, patch in the commit in order to determine the bump.'
required: false
outputs:
next_version: # id of output
description: 'The next version name (including the prefix)'
release:
description: Release object of the created release (if succeeded). See https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release
tag_name:
description: Tag name (e.g. `3.0.4`) of the newly created release.
assets_upload_url:
description: Upload URL for the release assets in the form of 'https://uploads.github.com/repos/<ORG_NAME>/<REPO_NAME>/releases/<RELEASE_ID>/assets
runs:
using: 'node16'
main: 'dist/index.js'