From c860c256d9b91dee52a8af86622964c090819ac2 Mon Sep 17 00:00:00 2001 From: Siris <40269790+Siris01@users.noreply.github.com> Date: Tue, 9 Jan 2024 21:16:35 +0530 Subject: [PATCH] fix: last timestamp logic --- src/action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action.js b/src/action.js index c96c2ee7..af90af96 100644 --- a/src/action.js +++ b/src/action.js @@ -271,7 +271,7 @@ async function sync(inputs) { // authenticated user. let commitInfo = commits.data[commits.data.length - 1].commit.author; for (const commit of commits.data) { - if (!commit.commit.message.startsWith(COMMIT_MESSAGE)) { + if (!commit.commit.message.startsWith(!!commitHeader ? commitHeader : COMMIT_MESSAGE)) { continue } commitInfo = commit.commit.author;