File tree 3 files changed +7
-5
lines changed 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ inputs:
17
17
outputs :
18
18
browser_download_url :
19
19
description : ' The URL users can navigate to in order to download the uploaded asset'
20
- file_md5 :
20
+ asset_md5 :
21
21
description : ' Provides md5 for the uploaded file'
22
+ asset_name :
23
+ description : ' The name of uploaded asset'
22
24
runs :
23
25
using : ' node12'
24
26
main : ' dist/index.js'
Original file line number Diff line number Diff line change @@ -4120,7 +4120,6 @@ const md5File = __webpack_require__(813);
4120
4120
4121
4121
async function run ( ) {
4122
4122
try {
4123
- console . log ( 'startiing' ) ;
4124
4123
// Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage
4125
4124
const github = new GitHub ( process . env . GITHUB_TOKEN ) ;
4126
4125
@@ -4153,7 +4152,8 @@ async function run() {
4153
4152
4154
4153
// Set the output variable for use by other actions: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
4155
4154
core . setOutput ( 'browser_download_url' , browserDownloadUrl ) ;
4156
- core . setOutput ( 'file_md5' , fileMD5 ) ;
4155
+ core . setOutput ( 'asset_md5' , fileMD5 ) ;
4156
+ core . setOutput ( 'asset_name' , assetName ) ;
4157
4157
} catch ( error ) {
4158
4158
core . setFailed ( error . message ) ;
4159
4159
}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const md5File = require('md5-file');
5
5
6
6
async function run ( ) {
7
7
try {
8
- console . log ( 'startiing' ) ;
9
8
// Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage
10
9
const github = new GitHub ( process . env . GITHUB_TOKEN ) ;
11
10
@@ -38,7 +37,8 @@ async function run() {
38
37
39
38
// Set the output variable for use by other actions: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
40
39
core . setOutput ( 'browser_download_url' , browserDownloadUrl ) ;
41
- core . setOutput ( 'file_md5' , fileMD5 ) ;
40
+ core . setOutput ( 'asset_md5' , fileMD5 ) ;
41
+ core . setOutput ( 'asset_name' , assetName ) ;
42
42
} catch ( error ) {
43
43
core . setFailed ( error . message ) ;
44
44
}
You can’t perform that action at this time.
0 commit comments