Skip to content

Commit a3ec587

Browse files
authored
Add release name to output variable (#677)
1 parent 216d90d commit a3ec587

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ A Github Action to download assets from github release. It can download specifie
5858
github-api-url: ""
5959
```
6060
61-
#### Outputs variables
61+
#### Output variables
6262
6363
- `tag_name` it outputs the tag used to download a release.
6464

@@ -67,6 +67,12 @@ A Github Action to download assets from github release. It can download specifie
6767
> ${{steps.<step-id>.outputs.tag_name}}
6868
> ```
6969

70+
- `release_name` it outputs the name/title of the release
71+
> It can ce used as follows
72+
> ```
73+
> ${{steps.<step-id>.outputs.release_name}}
74+
>```
75+
7076
- `downloaded_files` it outputs an array of downloaded files
7177

7278
> It can be used as follows

action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ inputs:
4949
outputs:
5050
tag_name:
5151
description: "The github tag used to download the release"
52+
release_name:
53+
description: "The release name / title"
5254
downloaded_files:
5355
description: "The array of downloaded files, useful when using wildcard '*' to download multiple files."
5456

dist/index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/release-downloader.ts

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class ReleaseDownloader {
5454

5555
// Set the output variables for use by other actions
5656
core.setOutput("tag_name", ghRelease.tag_name)
57+
core.setOutput("release_name", ghRelease.name)
5758
core.setOutput("downloaded_files", result)
5859

5960
return result

0 commit comments

Comments
 (0)