Skip to content

Commit 8c06892

Browse files
committed
Fix merge
1 parent 582e27a commit 8c06892

File tree

6 files changed

+16
-5619
lines changed

6 files changed

+16
-5619
lines changed

.eslintrc.json

-18
This file was deleted.

helpers/action/exec.ts

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
import { exec as coreExec } from "@actions/exec";
1+
import { exec as coreExec } from '@actions/exec'
22

33
/**
44
* By default, the core exec() function returns the response number of the command.
55
* This returns the stdout data instead.
66
* This action fails if data is outputted to stderr
77
* @param commandLine The command to run
88
*/
9-
export const exec = async (commandLine: string, failOnStdErr: boolean = true, silent: boolean = true) => {
10-
let stdoutData = "";
9+
export const exec = async (
10+
commandLine: string,
11+
failOnStdErr = true,
12+
silent = true
13+
): Promise<string> => {
14+
let stdoutData = ''
1115
await coreExec(commandLine.trim(), undefined, {
1216
listeners: {
1317
stdout: (data: Buffer) => {
14-
stdoutData += data.toString();
15-
},
18+
stdoutData += data.toString()
19+
}
1620
},
1721
failOnStdErr,
1822
silent
19-
});
20-
return stdoutData;
21-
};
23+
})
24+
return stdoutData
25+
}
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import * as core from "@actions/core";
1+
import * as core from '@actions/core'
22

33
/**
44
* Validate that all required inputs were provided
55
* If not, it will throw.
66
*/
7-
export function validateRequiredInputs(requiredInputs: Array<string>): void {
7+
export function validateRequiredInputs(requiredInputs: string[]): void {
88
for (const requiredInput of requiredInputs) {
9-
core.getInput(requiredInput, { required: true });
9+
core.getInput(requiredInput, { required: true })
1010
}
1111
}

jest.config.js

-11
This file was deleted.

0 commit comments

Comments
 (0)