Skip to content

Commit c193b75

Browse files
committed
date fix
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent dd3c7aa commit c193b75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build-pr-cmk.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ jobs:
7777
let commentBody = `<!-- ${identifier} -->\n`;
7878
7979
if (jobStatus === 'success') {
80-
const expiry = addDays(new Date(), 10);
81-
const expiryDate = expiry.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' });
80+
const expiryDate = execSync("date -d '+10 days' '+%B %d, %Y'").toString().trim();
8281
commentBody += `✅ Build complete for PR #${issue_number}.\n\n`;
8382
commentBody += `🔗 Download the [cmk binaries](${artifactUrl}) (expires on ${expiryDate})`;
8483
} else {

0 commit comments

Comments
 (0)