Skip to content

Commit

Permalink
feat: store metadata file
Browse files Browse the repository at this point in the history
Signed-off-by: Ar Rakin <[email protected]>
  • Loading branch information
virtual-designer committed Aug 28, 2024
1 parent 1b804c5 commit d318d52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33418,7 +33418,7 @@ function run() {
else {
metadataFileJSON = JSON.parse(yield (0, promises_1.readFile)(metadataFile, "utf-8"));
}
const commits = yield gitClient.getCommits(metadataFileJSON.lastReadCommit, github.context.payload.after);
const commits = yield gitClient.getCommits(github.context.payload.after, metadataFileJSON.lastReadCommit);
if (commits.length === 0) {
core.info("No new commits found.");
return;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ async function run() {
}

const commits = await gitClient.getCommits(
metadataFileJSON.lastReadCommit,
github.context.payload.after,
metadataFileJSON.lastReadCommit,
);

if (commits.length === 0) {
Expand Down

0 comments on commit d318d52

Please sign in to comment.