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
|
// // can't remove folder with locked file on windows
|
||||||
if (ioUtil.IS_WINDOWS) {
|
if (ioUtil.IS_WINDOWS) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.debug(`Version: ${process.versions.node.split('.')[0]}`)
|
||||||
try {
|
try {
|
||||||
// additionally, can't stat an open file on Windows without getting EPERM
|
// additionally, can't stat an open file on Windows without getting EPERM
|
||||||
await io.rmRF(testPath)
|
await io.rmRF(testPath)
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
|
|
||||||
export const {
|
export const {
|
||||||
access,
|
access,
|
||||||
chmod,
|
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, {
|
ioUtil.rm(inputPath, {
|
||||||
force: true,
|
force: true,
|
||||||
maxRetries: 3,
|
maxRetries: 3,
|
||||||
|
|
Loading…
Reference in New Issue