mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2659] How to Retrieve Execution Time for Each Job in Act #1201
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1201
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Betty1202 on GitHub (Feb 11, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2659
Act version
v0.2.74
Feature description
Hello,
I am using Act to run GitHub Actions locally, and I am wondering if there is a way to obtain the execution time for each job, similar to what is displayed on the GitHub Actions web interface. For example, the web interface provides a detailed breakdown of the execution time for each step within a job, as shown in the attached screenshot.
Is there a feature or workaround in Act that allows us to capture or display this information? Any guidance on how to achieve this would be greatly appreciated.
Thank you!
@ChristopherHX commented on GitHub (Feb 11, 2025):
See https://github.com/nektos/act/issues/2660#issuecomment-2652003109
json logs contains timestamp + start + stop of jobs and steps
@Betty1202 commented on GitHub (Feb 12, 2025):
Got it. Thanks!
@nobuto-m commented on GitHub (Feb 17, 2025):
I had a similar question and I ended up with a quick hack to print the output of
timeat the end of each step.bash -e -ccan be omitted for simplicity. However, actionlint doesn't enable shellcheck if the shell starts with the time command so double bash is a hack to take a balance of both.