@@ -22,10 +22,10 @@ function is_false(b) {
22
22
}
23
23
24
24
/*
25
- * cPlay action
25
+ * cNext action
26
26
*/
27
27
28
- var cPlay = function cPlay ( ) {
28
+ var cNext = function cNext ( ) {
29
29
this . workflow = "cnext" ;
30
30
31
31
// this.install = core.getInput("install");
@@ -36,14 +36,14 @@ var cPlay = function cPlay() {
36
36
return ;
37
37
} ;
38
38
39
- cPlay . prototype . install_cnext = async function ( ) {
39
+ cNext . prototype . install_cnext = async function ( ) {
40
40
const cnext = await tc . downloadTool ( "https://git.io/cnext" ) ;
41
41
core . setOutput ( "cnext" , cnext ) ;
42
42
await this . do_exec ( [ "perl" , cnext , "self-install" ] ) ;
43
43
return ;
44
44
} ;
45
45
46
- cPlay . prototype . get_tarball_value = function ( ) {
46
+ cNext . prototype . get_tarball_value = function ( ) {
47
47
const use_ci = is_true ( core . getInput ( "ci" ) ) ;
48
48
49
49
if ( ! use_ci ) {
@@ -57,7 +57,7 @@ cPlay.prototype.get_tarball_value = function () {
57
57
return `https://github.com/${ repository } /archive/${ sha } .tar.gz` ;
58
58
} ;
59
59
60
- cPlay . prototype . do_exec = async function ( cmd ) {
60
+ cNext . prototype . do_exec = async function ( cmd ) {
61
61
const sudo = is_true ( core . getInput ( "sudo" ) ) ;
62
62
const bin = sudo ? "sudo" : cmd . shift ( ) ;
63
63
@@ -66,7 +66,7 @@ cPlay.prototype.do_exec = async function (cmd) {
66
66
await exec . exec ( bin , cmd ) ;
67
67
} ;
68
68
69
- cPlay . prototype . run = async function ( ) {
69
+ cNext . prototype . run = async function ( ) {
70
70
await this . install_cnext ( ) ;
71
71
72
72
// Get the JSON webhook payload for the event that triggered the workflow
@@ -127,7 +127,7 @@ cPlay.prototype.run = async function () {
127
127
// https://alphacoder.xyz/nodejs-unhandled-promise-rejection-warning/
128
128
( async function ( ) {
129
129
try {
130
- const action = new cPlay ( ) ;
130
+ const action = new cNext ( ) ;
131
131
await action . run ( ) ;
132
132
} catch ( error ) {
133
133
core . setFailed ( error . message ) ;
0 commit comments