Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with milliseconds precision #4

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

YaroslavRepeta
Copy link

Workflow runs that GitHub API returns don't have millisecond precision.
So there might be a situation that the trigger date is:
"2021-10-08T18:42:45.031Z" while the corresponding run that GitHub API might return created_at = "2021-10-08T18:42:45Z" (if everything happened in less than a second).

That causes this action to fail by timeout (after trying to find run many times).

(There might be another solution where we use date header of GitHub response after create workflow dispatch)

@aurelien-baudet aurelien-baudet merged commit cf3498d into the-actions-org:master Nov 4, 2021
@aurelien-baudet
Copy link
Collaborator

Thank you for your contribution

@samirergaibi
Copy link

samirergaibi commented Dec 27, 2022

Shouldn't setMilliseconds(0) have been set on triggerDate instead of created_at? This issue seem to still remain.

Created this pr to address the issue 👉 #8.

samirergaibi added a commit to samirergaibi/workflow-dispatch that referenced this pull request Dec 27, 2022
remove ms precision from `triggerDate` as was the meaning of this previous bug fix the-actions-org#4
aurelien-baudet pushed a commit that referenced this pull request Jun 8, 2023
* 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
MatthewRyanRead added a commit to RentTheRunway/workflow-dispatch that referenced this pull request Jun 9, 2023
* Update to node16 (the-actions-org#7)

* Update to Node 16 to address GH warnings

* Update to node 16 on build

* Update dependency actions to Node 16 support

* Update to deps using Node 16

* bugfix: remove ms precision from `triggerDate` (the-actions-org#8)

* bugfix: remove ms precision from `triggerDate`

remove ms precision from `triggerDate` as was the meaning of this previous bug fix the-actions-org#4

* remove redundant Date.now

* Provide run name optional parameter to fetch run id based on name (the-actions-org#6)

* use check listforref to obtain run id

* proper param for run name

* Automated publish: Thu Jun  8 06:14:15 UTC 2023 d0f84d4

* chore(pr): Some adjustments after merge of PRs

* Automated publish: Thu Jun  8 07:01:06 UTC 2023 928e175

* feat(logs): Retrieve and print logs of triggered workflow

Upgrade all dependencies

* chore(logs): Prefix imported logs

* Automated publish: Fri Jun  9 06:55:17 UTC 2023 46e0c62

---------

Co-authored-by: Rui Ferreira <rui-ferreira@users.noreply.github.com>
Co-authored-by: Samir Ergaibi <38135462+samirergaibi@users.noreply.github.com>
Co-authored-by: Robbert van der Gugten <robbertvdg@gmail.com>
Co-authored-by: Automated Publisher <actions@users.noreply.github.com>
Co-authored-by: Aurélien Baudet <Aurelien.baudet@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants