fix sizebot - point correctly to circleci artifact (#17975)

similar to #17972, this should fix sizebot not reporting stats right now
This commit is contained in:
Sunil Pai 2020-02-04 22:03:13 +00:00 committed by GitHub
parent 613cbd3ace
commit d84c539b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ function git(args) {
for (let i = 0; i < baseArtifactsInfo.length; i++) { for (let i = 0; i < baseArtifactsInfo.length; i++) {
const info = baseArtifactsInfo[i]; const info = baseArtifactsInfo[i];
if (info.path === 'home/circleci/project/build/bundle-sizes.json') { if (info.path.endsWith('bundle-sizes.json')) {
const resultsResponse = await fetch(info.url); const resultsResponse = await fetch(info.url);
previousBuildResults = await resultsResponse.json(); previousBuildResults = await resultsResponse.json();
break; break;