Skip to content

Commit

Permalink
fix(action): use relative paths for uploading new base images (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian authored Jul 26, 2024
1 parent b3e26ef commit 3adbcd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action/dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36162,7 +36162,7 @@ var run = async () => {
).length;
const latestVisualRegressionStatus = await getLatestVisualRegressionStatus(commitHash);
const screenshotsPath = path3.join(process.cwd(), screenshotsDirectory);
const filesInScreenshotDirectory = sync(`${screenshotsPath}/**`) || [];
const filesInScreenshotDirectory = sync(`${screenshotsPath}/**`, { absolute: false }) || [];
const diffFilePaths = filesInScreenshotDirectory.filter(
(file) => file.endsWith("diff.png")
);
Expand Down
2 changes: 1 addition & 1 deletion action/dist/main.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion action/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const run = async () => {
const latestVisualRegressionStatus =
await getLatestVisualRegressionStatus(commitHash);
const screenshotsPath = path.join(process.cwd(), screenshotsDirectory);
const filesInScreenshotDirectory = sync(`${screenshotsPath}/**`) || [];
const filesInScreenshotDirectory =
sync(`${screenshotsPath}/**`, { absolute: false }) || [];
const diffFilePaths = filesInScreenshotDirectory.filter(file =>
file.endsWith('diff.png')
);
Expand Down

0 comments on commit 3adbcd2

Please sign in to comment.