Pushed at date has different format when Action is triggered from Push or manually #41400
Unanswered
SanctusAnimus
asked this question in
Actions
Replies: 1 comment
-
This issue is still happening. Will it be resolved? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
So i have this little action to write version number as a date in a string, to a repo - either on push or when triggered manually. Discusions found in google suggested usage of
pushed_at
- but it's format is different onpush
and forworkflow_dispatch
.Action code:
When triggered by pushing a commit, resulting string contains timestamp, like this:
GAME_VERSION = "1670755579"
But when triggered manually, it becomes an ISO datetime instead:
GAME_VERSION = "2022-12-11T10:51:09Z"
I tried
updated_at
, but it doesn't change at all between commits.Is there a way to eliminate discrepancy, or maybe some other date i can use?
Beta Was this translation helpful? Give feedback.
All reactions