-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
69 lines (69 loc) · 2.21 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
name: 'Edit Release'
author: 'Irongut <murray.dave@outlook.com>'
description: 'A GitHub Action for editing an existing release.'
branding:
icon: edit
color: purple
inputs:
token:
description: 'Authentication token, use either GITHUB_TOKEN or a Personal Access Token.'
required: true
id:
description: 'The id of the release to edit, e.g. github.event.release.id.'
required: true
name:
description: 'New text for the name of the release.'
required: false
default: ''
replacename:
description: 'Set true to replace the release name, false to add to the release name (default).'
required: false
default: 'false'
draft:
description: 'Set true to change the release to a draft, false to publish the release. Omit if you do not want to change the draft status of the release.'
required: false
default: ''
prerelease:
description: 'Set true to identify the release as a pre-release, false to identify the release as a full release. Omit if you do not want to change the status of the release.'
required: false
default: ''
body:
description: 'New text for the body of the release.'
required: false
default: ''
replacebody:
description: 'Set true to replace the release body, false to add to the release body. (default)'
required: false
default: 'false'
files:
description: 'A comma separated list of files whose content will be added after the release body text.'
required: false
default: ''
spacing:
description: 'The number of blank lines required between each addition to the release body. (default = 1)'
required: false
default: '1'
runs:
using: 'docker'
image: 'docker://ghcr.io/irongut/editrelease:v1.2.0'
args:
- '--token'
- ${{ inputs.token }}
- '--id'
- ${{ inputs.id }}
- '--name'
- ${{ inputs.name }}
- '--replacename'
- ${{ inputs.replacename }}
- '--draft'
- ${{ inputs.draft }}
- '--prerelease'
- ${{ inputs.prerelease }}
- '--body'
- ${{ inputs.body }}
- '--replacebody'
- ${{ inputs.replacebody }}
- '--files'
- ${{ inputs.files }}
- '--spacing'
- ${{ inputs.spacing }}