Skip to content

Commit 4920208

Browse files
committed
index.js
1 parent 4c0437e commit 4920208

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ function is_false(b) {
2222
}
2323

2424
/*
25-
* cPlay action
25+
* cNext action
2626
*/
2727

28-
var cPlay = function cPlay() {
28+
var cNext = function cNext() {
2929
this.workflow = "cnext";
3030

3131
// this.install = core.getInput("install");
@@ -36,14 +36,14 @@ var cPlay = function cPlay() {
3636
return;
3737
};
3838

39-
cPlay.prototype.install_cnext = async function () {
39+
cNext.prototype.install_cnext = async function () {
4040
const cnext = await tc.downloadTool("https://git.io/cnext");
4141
core.setOutput("cnext", cnext);
4242
await this.do_exec(["perl", cnext, "self-install"]);
4343
return;
4444
};
4545

46-
cPlay.prototype.get_tarball_value = function () {
46+
cNext.prototype.get_tarball_value = function () {
4747
const use_ci = is_true(core.getInput("ci"));
4848

4949
if (!use_ci) {
@@ -57,7 +57,7 @@ cPlay.prototype.get_tarball_value = function () {
5757
return `https://github.com/${repository}/archive/${sha}.tar.gz`;
5858
};
5959

60-
cPlay.prototype.do_exec = async function (cmd) {
60+
cNext.prototype.do_exec = async function (cmd) {
6161
const sudo = is_true(core.getInput("sudo"));
6262
const bin = sudo ? "sudo" : cmd.shift();
6363

@@ -66,7 +66,7 @@ cPlay.prototype.do_exec = async function (cmd) {
6666
await exec.exec(bin, cmd);
6767
};
6868

69-
cPlay.prototype.run = async function () {
69+
cNext.prototype.run = async function () {
7070
await this.install_cnext();
7171

7272
// Get the JSON webhook payload for the event that triggered the workflow
@@ -127,7 +127,7 @@ cPlay.prototype.run = async function () {
127127
// https://alphacoder.xyz/nodejs-unhandled-promise-rejection-warning/
128128
(async function() {
129129
try {
130-
const action = new cPlay();
130+
const action = new cNext();
131131
await action.run();
132132
} catch(error) {
133133
core.setFailed(error.message);

0 commit comments

Comments
 (0)