-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaction.yml
51 lines (43 loc) · 1.38 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
name: Delete Release Assets
description: GitHub action for deleting assets from a GitHub release.
author: Miro Knejp @mknejp
inputs:
tag:
description: >
The name of the tag. This uniquely identifies the release.
May either be a tag name directly (like `v1.0.0`) or a tag ref
(like `refs/tags/v1.0.0` as is provided by `github.ref` or `GITHUB_REF`).
required: true
fail-if-no-release:
description: >
Fail the action if no release associated with the given tag was found (default `true`).
required: false
default: true
fail-if-no-assets:
description: >
Fail the action if the release contains no matching assets (default `true`).
required: false
default: true
assets:
description: >
Newline-delimited globs of asset names to delete from the release.
required: true
token:
description: >
The token for authenticating against the GitHub API.
required: true
repository:
description: >
Repository to delete assets in format `owner/repo` (default current repository).
required: false
default: ''
outputs:
deleted-assets:
description: >
Semicolon-delimited list of deleted asset names (for example `file1.txt;file2.zip`).
release_id:
description: >
The unique ID of the github release from which the assets were deleted.
runs:
using: node20
main: dist/index.js