@@ -378,55 +378,9 @@ module.exports._enoent = enoent;
378
378
/***/ } ) ,
379
379
380
380
/***/ 31 :
381
- /***/ ( function ( module , __unusedexports , __webpack_require__ ) {
382
-
383
- const core = __webpack_require__ ( 470 ) ;
384
- const { GitHub, context } = __webpack_require__ ( 469 ) ;
385
-
386
- async function run ( ) {
387
- try {
388
- // Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage
389
- const github = new GitHub ( process . env . GITHUB_TOKEN ) ;
390
-
391
- // Get owner and repo from context of payload that triggered the action
392
- const { owner, repo } = context . repo ;
393
-
394
- // Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
395
- const tagName = core . getInput ( 'tag_name' , { required : true } ) ;
381
+ /***/ ( function ( __unusedmodule , __unusedexports , __webpack_require__ ) {
396
382
397
- // This removes the 'refs/tags' portion of the string, i.e. from 'refs/tags/v1.10.15' to 'v1.10.15'
398
- const tag = tagName . replace ( 'refs/tags/' , '' ) ;
399
- const releaseName = core . getInput ( 'release_name' , { required : true } ) . replace ( 'refs/tags/' , '' ) ;
400
- const draft = core . getInput ( 'draft' , { required : false } ) === 'true' ;
401
- const prerelease = core . getInput ( 'prerelease' , { required : false } ) === 'true' ;
402
-
403
- // Create a release
404
- // API Documentation: https://developer.github.com/v3/repos/releases/#create-a-release
405
- // Octokit Documentation: https://octokit.github.io/rest.js/#octokit-routes-repos-create-release
406
- const createReleaseResponse = await github . repos . createRelease ( {
407
- owner,
408
- repo,
409
- tag_name : tag ,
410
- name : releaseName ,
411
- draft,
412
- prerelease
413
- } ) ;
414
-
415
- // Get the ID, html_url, and upload URL for the created Release from the response
416
- const {
417
- data : { id : releaseId , html_url : htmlUrl , upload_url : uploadUrl }
418
- } = createReleaseResponse ;
419
-
420
- // Set the output variables for use by other actions: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
421
- core . setOutput ( 'id' , releaseId ) ;
422
- core . setOutput ( 'html_url' , htmlUrl ) ;
423
- core . setOutput ( 'upload_url' , uploadUrl ) ;
424
- } catch ( error ) {
425
- core . setFailed ( error . message ) ;
426
- }
427
- }
428
-
429
- module . exports = run ;
383
+ const run = __webpack_require__ ( 760 ) ;
430
384
431
385
if ( require . main === require . cache [ eval ( '__filename' ) ] ) {
432
386
run ( ) ;
@@ -7885,6 +7839,60 @@ const request = withDefaults(endpoint.endpoint, {
7885
7839
exports . request = request ;
7886
7840
7887
7841
7842
+ /***/ } ) ,
7843
+
7844
+ /***/ 760 :
7845
+ /***/ ( function ( module , __unusedexports , __webpack_require__ ) {
7846
+
7847
+ const core = __webpack_require__ ( 470 ) ;
7848
+ const { GitHub, context } = __webpack_require__ ( 469 ) ;
7849
+
7850
+ async function run ( ) {
7851
+ try {
7852
+ // Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage
7853
+ const github = new GitHub ( process . env . GITHUB_TOKEN ) ;
7854
+
7855
+ // Get owner and repo from context of payload that triggered the action
7856
+ const { owner, repo } = context . repo ;
7857
+
7858
+ // Get the inputs from the workflow file: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
7859
+ const tagName = core . getInput ( 'tag_name' , { required : true } ) ;
7860
+
7861
+ // This removes the 'refs/tags' portion of the string, i.e. from 'refs/tags/v1.10.15' to 'v1.10.15'
7862
+ const tag = tagName . replace ( 'refs/tags/' , '' ) ;
7863
+ const releaseName = core . getInput ( 'release_name' , { required : true } ) . replace ( 'refs/tags/' , '' ) ;
7864
+ const draft = core . getInput ( 'draft' , { required : false } ) === 'true' ;
7865
+ const prerelease = core . getInput ( 'prerelease' , { required : false } ) === 'true' ;
7866
+
7867
+ // Create a release
7868
+ // API Documentation: https://developer.github.com/v3/repos/releases/#create-a-release
7869
+ // Octokit Documentation: https://octokit.github.io/rest.js/#octokit-routes-repos-create-release
7870
+ const createReleaseResponse = await github . repos . createRelease ( {
7871
+ owner,
7872
+ repo,
7873
+ tag_name : tag ,
7874
+ name : releaseName ,
7875
+ draft,
7876
+ prerelease
7877
+ } ) ;
7878
+
7879
+ // Get the ID, html_url, and upload URL for the created Release from the response
7880
+ const {
7881
+ data : { id : releaseId , html_url : htmlUrl , upload_url : uploadUrl }
7882
+ } = createReleaseResponse ;
7883
+
7884
+ // Set the output variables for use by other actions: https://github.com/actions/toolkit/tree/master/packages/core#inputsoutputs
7885
+ core . setOutput ( 'id' , releaseId ) ;
7886
+ core . setOutput ( 'html_url' , htmlUrl ) ;
7887
+ core . setOutput ( 'upload_url' , uploadUrl ) ;
7888
+ } catch ( error ) {
7889
+ core . setFailed ( error . message ) ;
7890
+ }
7891
+ }
7892
+
7893
+ module . exports = run ;
7894
+
7895
+
7888
7896
/***/ } ) ,
7889
7897
7890
7898
/***/ 761 :
0 commit comments