Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Oct 22, 2023
1 parent b2b2968 commit a0b2721
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const createBaseUrl = ({
runId: number;
artifactName: string;
}): string => {
return `https://github.com/${owner}/${repoName}/blob/${branch}/${runId}_${artifactName}/`;
return `https://raw.githubusercontent.com/${owner}/${repoName}/${branch}/${runId}_${artifactName}/`;
};

const differences = ({ result, baseUrl }: { result: CompareOutput; baseUrl: string }): string => {
Expand Down Expand Up @@ -86,8 +86,7 @@ ${result.newItems
const filename = basename(item);
console.log(join(baseUrl, 'actual', filename));
return `| ![NewItem](${join(baseUrl, 'actual', filename)}?raw=true) |
`;
return `| ![NewItem](https://raw.githubusercontent.com/bokuweb/reg-actions/reg/6602169287_reg/actual/sample.png) |`;
})
.join('\n')}
`;
Expand Down

0 comments on commit a0b2721

Please sign in to comment.