We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd3c7aa commit c193b75Copy full SHA for c193b75
1 file changed
.github/workflows/build-pr-cmk.yml
@@ -77,8 +77,7 @@ jobs:
77
let commentBody = `<!-- ${identifier} -->\n`;
78
79
if (jobStatus === 'success') {
80
- const expiry = addDays(new Date(), 10);
81
- const expiryDate = expiry.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' });
+ const expiryDate = execSync("date -d '+10 days' '+%B %d, %Y'").toString().trim();
82
commentBody += `✅ Build complete for PR #${issue_number}.\n\n`;
83
commentBody += `🔗 Download the [cmk binaries](${artifactUrl}) (expires on ${expiryDate})`;
84
} else {
0 commit comments