fix(tests): presets
This commit is contained in:
@@ -13,7 +13,11 @@ try {
|
|||||||
fss.accessSync(__presets)
|
fss.accessSync(__presets)
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
processes.execSync(`git clone https://github.com/lowlighter/metrics.git ${__presets} --branch presets --single-branch`)
|
let {HEAD_REF:branch, REPO:repo} = process.env
|
||||||
|
branch = branch || "presets"
|
||||||
|
repo = repo || "lowlighter/metrics"
|
||||||
|
console.log(`cloning: ${repo}@${branch}`)
|
||||||
|
processes.execSync(`git clone https://github.com/${repo}.git ${__presets} --branch ${branch} --single-branch`)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Generate presets examples
|
//Generate presets examples
|
||||||
|
|||||||
Reference in New Issue
Block a user