Skip to content

Commit 891f251

Browse files
authored
bugfix: remove ms precision from triggerDate (#8)
* bugfix: remove ms precision from `triggerDate` remove ms precision from `triggerDate` as was the meaning of this previous bug fix #4 * remove redundant Date.now
1 parent 0b7e0b1 commit 891f251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workflow-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class WorkflowHandler {
5959
async triggerWorkflow(inputs: any) {
6060
try {
6161
const workflowId = await this.getWorkflowId();
62-
this.triggerDate = Date.now();
62+
this.triggerDate = new Date().setMilliseconds(0);
6363
const dispatchResp = await this.octokit.actions.createWorkflowDispatch({
6464
owner: this.owner,
6565
repo: this.repo,

0 commit comments

Comments
 (0)