-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
72 lines (72 loc) · 2.8 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
71
72
name: 'Keep-a-Changelog Action'
description: >-
Performs operations on changelogs that are in Keep-a-Changelog format: bump the version, query release info.
author: Release Flow
branding:
icon: layers
color: purple
inputs:
command:
description: >-
The command to perform: 'bump' or 'query'.
required: true
changelog:
description: >-
The path to the changelog. If a relative path is specified, it is appended to the GitHub workspace path.
required: false
default: 'CHANGELOG.md'
version:
description: >-
The release version. When bumping, determines the next version number. When querying, indicates the version for
which to extract the release information. See readme for a full description and a list of special values.
required: true
preid:
description: >-
The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. For example, it would
specify the 'beta' in '1.0.0-beta.1'.
required: false
release-date:
description: >-
When bumping, indicates the release date that is written into the changelog for the new release, in ISO 8601
format, e.g. 2022-03-03. Defaults to the current system date.
required: false
tag-prefix:
description: >-
When bumping, specifies the prefix that is applied to the release number to generate the release tag.
required: false
default: 'v'
output-file:
description: >-
When bumping, specifies the name of the modified changelog file relative to the input changelog directory. If not
specified, the input changelog is overwritten.
required: false
keep-unreleased-section:
description: >-
When bumping, keeps an empty 'Unreleased' section in the output changelog after bumping the input changelog's
'Unreleased' section.
required: false
default: 'false'
fail-on-empty-release-notes:
description: >-
When bumping, if this input is true then the action will report an error if it detects an empty 'Unreleased'
section in the input changelog.
required: false
default: 'false'
outputs:
version:
description: >-
When bumping, contains the release version that was used to update the changelog. When querying, contains the
release version that was matched.
release-notes:
description: >-
The markdown content of the changelog section for the release.
release-date:
description: >-
The release date in the form yyyy-MM-dd, or blank if the matched version was '[unreleased]'.
release-suffix:
description: >-
The final part of the release heading, after the version and date have been parsed. For example, if the release
heading is '## [0.0.5] - 2014-12-13 [YANKED]', this output would contain '[YANKED]'.
runs:
using: 'node20'
main: dist/index.js