-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
70 lines (70 loc) · 2.12 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
name: get-releasenote
description: GitHub action for getting release note from towncrier rendered file.
inputs:
changes_file:
description: Path to CHANGES file generated by towncrier
required: true
output_file:
description: Where to write the output
required: true
dist_dir:
description: Path to folder with distributions
required: false
default: 'dist'
check_ref:
description: Perform git tag check to match provided version
required: false
default: ''
name:
description: Package name as presented in CHANGES file.
required: false
default: ''
version:
description: Release version to extract
required: false
default: ''
version_file:
description: Path to file containing __version__ string
required: false
default: ''
start_line:
description: The marker for towncrier start point
required: false
default: '.. towncrier release notes start'
head_line:
description: Regular expression for head line
required: false
default: "{name} {version}\\s+\\({date}\\)\n====+\n?"
fix_issue_regex:
description: Regexp for issue record replacement
required: false
default: ''
fix_issue_repl:
description: Replacement rule for regexps found by fix_issue_regex
required: false
default: ''
outputs:
version:
description: Used version number
prerelease:
description: true is the version points to pre-release, false otherwise
devrelease:
description: true is the version points to dev-release, false otherwise
branding:
color: yellow
icon: upload
runs:
using: docker
image: Dockerfile
env:
INPUT_DIST_DIR: ${{ inputs.dist_dir }}
INPUT_CHECK_REF: ${{ inputs.check_ref }}
INPUT_CHANGES_FILE: ${{ inputs.changes_file }}
INPUT_OUTPUT_FILE: ${{ inputs.output_file }}
INPUT_NAME: ${{ inputs.name }}
INPUT_VERSION: ${{ inputs.version }}
INPUT_VERSION_FILE: ${{ inputs.version_file }}
INPUT_START_LINE: ${{ inputs.start_line }}
INPUT_HEAD_LINE: ${{ inputs.head_line }}
INPUT_FIX_ISSUE_REGEX: ${{ inputs.fix_issue_regex }}
INPUT_FIX_ISSUE_REPL: ${{ inputs.fix_issue_repl }}