@@ -5,19 +5,14 @@ import {readdirSync, unlinkSync} from 'fs'
5
5
6
6
async function run ( ) : Promise < void > {
7
7
try {
8
- const {
9
- artifactName,
10
- stripPrefix,
11
- download,
12
- bytesToExtract,
13
- cacheId
14
- } = await get (
15
- core . getInput ( 'repository' ) ,
16
- core . getInput ( 'definitionId' ) ,
17
- core . getInput ( 'artifact' ) ,
18
- core . getInput ( 'stripPrefix' ) ,
19
- core . getInput ( 'reasonFilter' )
20
- )
8
+ const { artifactName, stripPrefix, download, bytesToExtract, cacheId} =
9
+ await get (
10
+ core . getInput ( 'repository' ) ,
11
+ core . getInput ( 'definitionId' ) ,
12
+ core . getInput ( 'artifact' ) ,
13
+ core . getInput ( 'stripPrefix' ) ,
14
+ core . getInput ( 'reasonFilter' )
15
+ )
21
16
const outputDirectory = core . getInput ( 'path' ) || artifactName
22
17
let useCache = core . getInput ( 'cache' ) === 'true'
23
18
const verbose : number | boolean = ( ( input ?: string ) =>
@@ -29,6 +24,7 @@ async function run(): Promise<void> {
29
24
try {
30
25
return readdirSync ( path ) . length === 0
31
26
} catch ( e ) {
27
+ /* eslint @typescript-eslint/no-explicit-any: "off" */
32
28
return e instanceof Object && ( e as any ) . code === 'ENOENT'
33
29
}
34
30
}
@@ -72,7 +68,9 @@ async function run(): Promise<void> {
72
68
core . warning ( `Failed to cache ${ cacheId } ` )
73
69
}
74
70
} catch ( e ) {
75
- core . warning ( `Failed to cache ${ cacheId } : ${ e instanceof Error && e . message } ` )
71
+ core . warning (
72
+ `Failed to cache ${ cacheId } : ${ e instanceof Error && e . message } `
73
+ )
76
74
}
77
75
78
76
if ( storeZipAs ) {
0 commit comments