File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1698,14 +1698,20 @@ class SDKManager {
1698
1698
}
1699
1699
async run(args, printOutputInDebug) {
1700
1700
let stdout = "";
1701
+ let previousPrintedLine = "";
1701
1702
const outputListener = (data) => {
1703
+ const line = data.toString();
1704
+ if (line === previousPrintedLine) {
1705
+ return;
1706
+ }
1702
1707
stdout += data.toString();
1703
1708
if (printOutputInDebug) {
1704
1709
utils_1.splitByEOL(data.toString()).map(s => s.trim()).filter(Boolean).forEach(s => core.debug(s));
1705
1710
}
1711
+ previousPrintedLine = stdout;
1706
1712
};
1707
1713
const options = {
1708
- silent: true ,
1714
+ silent: false ,
1709
1715
ignoreReturnCode: true,
1710
1716
failOnStdErr: false,
1711
1717
listeners: {
Original file line number Diff line number Diff line change @@ -30,14 +30,21 @@ export class SDKManager {
30
30
31
31
private async run(args: string[], printOutputInDebug: boolean): Promise<string> {
32
32
let stdout = "";
33
+ let previousPrintedLine = "";
33
34
const outputListener = (data: Buffer): void => {
35
+ const line = data.toString();
36
+ if (line === previousPrintedLine) {
37
+ return;
38
+ }
39
+
34
40
stdout += data.toString();
35
41
if (printOutputInDebug) {
36
42
splitByEOL(data.toString()).map(s => s.trim()).filter(Boolean).forEach(s => core.debug(s));
37
43
}
44
+ previousPrintedLine = stdout;
38
45
};
39
46
const options: exec.ExecOptions = {
40
- silent: true ,
47
+ silent: false ,
41
48
ignoreReturnCode: true,
42
49
failOnStdErr: false,
43
50
listeners: {
You can’t perform that action at this time.
0 commit comments