Move fileExistsSync to utils

This commit is contained in:
Peter Evans 2020-07-18 17:55:42 +09:00
parent f4ee4a8333
commit 794518a553
4 changed files with 39 additions and 164 deletions

View file

@ -1,6 +1,6 @@
import * as exec from '@actions/exec'
import * as io from '@actions/io'
import * as fshelper from './fs-helper'
import * as utils from './utils'
import * as path from 'path'
const tagsRefSpec = '+refs/tags/*:refs/tags/*'
@ -117,9 +117,7 @@ export class GitCommandManager {
args.push('--progress', '--no-recurse-submodules')
if (
fshelper.fileExistsSync(
path.join(this.workingDirectory, '.git', 'shallow')
)
utils.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))
) {
args.push('--unshallow')
}