-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
56 lines (55 loc) · 1.89 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
name: 'Replicated Release Notes Helper'
description: 'Generates release notes markdown and writes it to the RELEASE_NOTES variable in the Github Action environment'
inputs:
owner-repo:
description: 'The owner/repo of the Github repository to be used (required)'
required: true
base:
description: 'The release tag to use as the base of the release notes diff'
required: false
default: ''
head:
description: 'The release tag to use as the head of the release notes diff'
required: true
title:
description: 'The release notes title'
required: true
description:
description: 'Description to be added to the release notes'
required: false
default: ''
include-pr-links:
description: 'Include links back to pull requests'
required: false
default: false
github-token:
description: 'Github API Token'
required: true
default: ''
feature-type-labels:
description: 'A comma separated list of labels to consider as features'
default: 'type::feature'
improvement-type-labels:
description: 'A comma separated list of labels to consider as improvements'
default: 'type::improvement,type::security'
bug-type-labels:
description: 'A comma separated list of labels to consider as bugs'
default: 'type::bug'
outputs:
release-notes:
description: 'The generated release notes markdown'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- --owner-repo=${{ inputs.owner-repo }}
- --base=${{ inputs.base }}
- --head=${{ inputs.head }}
- --title="${{ inputs.title }}"
- --description="${{ inputs.description }}"
- --include-pr-links=${{ inputs.include-pr-links }}
- --feature-type-labels=${{ inputs.feature-type-labels }}
- --improvement-type-labels=${{ inputs.improvement-type-labels }}
- --bug-type-labels=${{ inputs.bug-type-labels }}
env:
GITHUB_AUTH_TOKEN: ${{ inputs.github-token }}