mirror of https://github.com/actions/toolkit
Adding version check
parent
9f3f840120
commit
6bb14c42ee
|
@ -353,6 +353,8 @@ describe('rmRF', () => {
|
|||
|
||||
// // can't remove folder with locked file on windows
|
||||
if (ioUtil.IS_WINDOWS) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug(`Version: ${process.versions.node.split('.')[0]}`)
|
||||
try {
|
||||
// additionally, can't stat an open file on Windows without getting EPERM
|
||||
await io.rmRF(testPath)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import * as fs from 'fs'
|
||||
import * as path from 'path'
|
||||
|
||||
export const {
|
||||
access,
|
||||
chmod,
|
||||
|
|
|
@ -119,8 +119,6 @@ export async function rmRF(inputPath: string): Promise<void> {
|
|||
)
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug(`Version: ${process.version}`)
|
||||
ioUtil.rm(inputPath, {
|
||||
force: true,
|
||||
maxRetries: 3,
|
||||
|
|
Loading…
Reference in New Issue