This commit is contained in:
Corey Butler 2020-04-02 23:19:41 -05:00
parent 474294ced5
commit dec8dcd1af

View File

@ -1,11 +1,12 @@
import Regex from './regex.js'
import path from 'path'
import fs from 'fs'
import core from '@actions/core'
export default class Dockerfile extends Regex {
constructor (root = null) {
root = path.join(process.env.GITHUB_WORKSPACE, root)
core.debug(fs.readdirSync(root))
if (fs.statSync(root).isDirectory()) {
root = path.join(root, 'Dockerfile')
}