-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
81 lines (67 loc) · 2.45 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
73
74
75
76
77
78
name: 'Changelog Releasenotes Action'
description: 'Generate release notes from CHANGELOG.md and upload them into github release description'
author: 'kuvaus'
inputs:
changelog:
description: 'The input path of the changelog file. Default: `CHANGELOG.md`'
required: false
filtered_changelog:
description: 'The output path of the release notes file'
required: false
changelog_format:
description: 'Changelog format, keepachangelog or other'
required: false
start_token:
description: 'The start tag of the release notes'
required: false
end_token:
description: 'The end tag of the release notes'
required: false
specific_tag:
description: 'Extract release notes from a specific tag (e.g. v0.1.2) instead of the newest one, default: empty'
required: false
skip_n_lines:
description: 'Skip first N lines in parsing'
required: false
upcoming_release:
description: 'Set this to `true` to get release notes from the [Upcoming] section instead of the first tagged release'
required: false
create_release:
description: 'Set this to `true` to make a new release if one does not exist'
required: false
update_release:
description: 'Set this to `true` to update a release'
required: false
#
# Outputs the release notes in text in here
#
outputs:
releasenotes:
description: 'The filtered release notes'
# runs:
# using: node16
# main: dist/index.js
# This part is temporary to enable Node 18 support
runs:
using: composite
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version || '18' }}
- name: Action
run: |
node ${{ github.action_path }}/dist/index.js
echo "::set-output name=releasenotes::value1"
shell: ${{ (runner.os == 'Windows' && 'pwsh') || 'bash' }}
env:
INPUT_CHANGELOG: ${{ inputs.changelog }}
INPUT_FILTERED_CHANGELOG: ${{ inputs.filtered_changelog }}
INPUT_CHANGELOG_FORMAT: ${{ inputs.changelog_format }}
INPUT_START_TOKEN: ${{ inputs.start_token }}
INPUT_END_TOKEN: ${{ inputs.end_token }}
INPUT_SPECIFIC_TAG: ${{ inputs.specific_tag }}
INPUT_SKIP_N_LINES: ${{ inputs.skip_n_lines }}
INPUT_UPCOMING_RELEASE: ${{ inputs.upcoming_release }}
INPUT_CREATE_RELEASE: ${{ inputs.create_release }}
INPUT_UPDATE_RELEASE: ${{ inputs.update_release }}