Skip to content

Commit 2a451cc

Browse files
authored
Updates globber (#200)
1 parent a546f89 commit 2a451cc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/main/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ async function genhtml(coverageFiles, tmpPath) {
114114

115115
if (artifactName !== '') {
116116
const artifact = new DefaultArtifactClient();
117-
const globber = await glob.create(`${artifactPath}/**`);
118-
const htmlFiles = (await globber.glob()).filter(item => item !== artifactPath);
117+
const globber = await glob.create(`${artifactPath}/**/**.*`);
118+
const htmlFiles = await globber.glob();
119119

120120
core.info(`Uploading artifacts.`);
121121

0 commit comments

Comments
 (0)