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

upate js, not ts, version of download-artifact with branch name bugfix (#999)

上级 8206a228
No related branches found
No related tags found
无相关合并请求
......@@ -453,7 +453,8 @@ function githubListArtifacts(artifacts, dlOptions, verifyPlatformAndFormat) {
artifacts_2,
artifact,
name_2,
artifactPath
artifactPath,
dir
return __generator(this, function (_a) {
;(branch = dlOptions.branch),
(outputDir = dlOptions.outputDir),
......@@ -482,7 +483,10 @@ function githubListArtifacts(artifacts, dlOptions, verifyPlatformAndFormat) {
artifactsList.push(artifactPath)
}
try {
fs_1['default'].mkdirSync(outputDir, { recursive: true })
dir = path_1['default'].dirname(
path_1['default'].join(outputDir, ''.concat(branch, '.txt'))
)
fs_1['default'].mkdirSync(dir, { recursive: true })
fs_1['default'].writeFileSync(
path_1['default'].join(outputDir, ''.concat(branch, '.txt')),
artifactsList.join('\n')
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册