Skip to content
代码片段 群组 项目
未验证 提交 8206a228 编辑于 作者: Jing T's avatar Jing T 提交者: GitHub
浏览文件

fix bug when branch name have folder/slashes (#998)

上级 388f3e3c
No related branches found
No related tags found
无相关合并请求
......@@ -232,7 +232,10 @@ async function githubListArtifacts(
artifactsList.push(artifactPath)
}
try {
fs.mkdirSync(outputDir, { recursive: true })
// in case branch names have slashes (feature/branchName)
let dir = path.dirname(path.join(outputDir, `${branch}.txt`))
fs.mkdirSync(dir, { recursive: true })
fs.writeFileSync(
path.join(outputDir, `${branch}.txt`),
artifactsList.join('\n')
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册