Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed May 26, 2024
1 parent 42ce48a commit a8d2744
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,24 +198,24 @@ export const run = async ({

const result = await compareAndUpload(client, config);

log.info(result);
log.info('Result', result);

// If changed, upload images to specified branch.
if (!config.disableBranch) {
// if (result.deletedItems.length !== 0 || result.failedItems.length !== 0 || result.newItems.length !== 0) {
await pushImages({
githubToken: config.githubToken,
runId,
result,
branch: config.branch,
targetDir: targetDir({ runId, artifactName: config.artifactName, date }),
env: process.env,
// commitName: undefined,
// commitEmail: undefined,
retentionDays: config.retentionDays,
});
// }
}
// if (!config.disableBranch) {
// if (result.deletedItems.length !== 0 || result.failedItems.length !== 0 || result.newItems.length !== 0) {
await pushImages({
githubToken: config.githubToken,
runId,
result,
branch: config.branch,
targetDir: targetDir({ runId, artifactName: config.artifactName, date }),
env: process.env,
// commitName: undefined,
// commitEmail: undefined,
retentionDays: config.retentionDays,
});
// }
// }

const comment = createCommentWithTarget({
event,
Expand Down

0 comments on commit a8d2744

Please sign in to comment.