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 673d39b commit 42ce48a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const copyImages = async (result: CompareOutput, temp: string, dest: string): Pr
};

export const pushImages = async (input: PushImagesInput) => {
log.info('Staring Push images')
const { env } = input;
const config = genConfig(input);

Expand Down
22 changes: 11 additions & 11 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,17 @@ export const run = async ({
// 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,
});
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,
});
// }
}

Expand Down

0 comments on commit 42ce48a

Please sign in to comment.