@@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url';
4
4
5
5
import * as artifact from '@actions/artifact' ;
6
6
import * as core from '@actions/core' ;
7
- import exec from '@actions/exec' ;
7
+ import { exec } from '@actions/exec' ;
8
8
import { context , getOctokit } from '@actions/github' ;
9
9
import * as glob from '@actions/glob' ;
10
10
import bytes from 'bytes' ;
@@ -151,7 +151,8 @@ class SizeLimit {
151
151
async function execSizeLimit ( ) {
152
152
let output = '' ;
153
153
154
- const status = await exec . exec ( 'yarn' , [ 'size-limit' , '--json' ] , {
154
+ const status = await exec ( 'yarn' , [ 'size-limit' , '--json' ] , {
155
+ windowsVerbatimArguments : false ,
155
156
ignoreReturnCode : true ,
156
157
cwd : process . cwd ( ) ,
157
158
listeners : {
@@ -250,6 +251,7 @@ async function run() {
250
251
current = limit . parseResults ( output ) ;
251
252
} catch ( error ) {
252
253
core . error ( 'Error parsing size-limit output. The output should be a json.' ) ;
254
+ core . error ( output ) ;
253
255
throw error ;
254
256
}
255
257
@@ -268,14 +270,12 @@ async function run() {
268
270
if ( ! sizeLimitComment ) {
269
271
await octokit . rest . issues . createComment ( {
270
272
...repo ,
271
- // eslint-disable-next-line camelcase
272
273
issue_number : pr . number ,
273
274
body,
274
275
} ) ;
275
276
} else {
276
277
await octokit . rest . issues . updateComment ( {
277
278
...repo ,
278
- // eslint-disable-next-line camelcase
279
279
comment_id : sizeLimitComment . id ,
280
280
body,
281
281
} ) ;
0 commit comments