[GH-ISSUE #2551] Add support for additional JSON fields to output setup, clean, and pre stage step status #1170

Closed
opened 2026-03-01 21:49:27 +03:00 by kerem · 0 comments
Owner

Originally created by @SanjulaGanepola on GitHub (Nov 30, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2551

Act version

act version 0.2.69

Feature description

For the GitHub Local Actions extension, I am working on a pull request here to add support for displaying job and step level status for an executing workflow. As part of this, I am parsing the output of the command and always including the --json field. However, there are a few missing fields and messages to support this.

The following new JSON fields will be needed:

  1. Add stepResult for Pre stage steps to know if the pre stage succeeded or failed (Post stage already has this so it makes sense to keep it consistent).
  2. Add setupResult and cleanupResult field for the final setup and final clean up message to know if it succeeded or failed.
  3. Add the ability to distinguish setup steps from clean up steps. For example, this could be through some field called type that is either setup or cleanup.

Another additional JSON message that would be very helpful would be when a job is skipped or a step is skipped. This is not as a high priority as the above 3 requirements, but it would make it very easy to display skipped jobs/steps in the tree view.

In the PRs current state, I am unable to tell the pre stage step status, Complete Job status (aka clean up), and the Setup Job status (I temporarily marked it as always successful for now, but this is not ideal):

image

Originally created by @SanjulaGanepola on GitHub (Nov 30, 2024). Original GitHub issue: https://github.com/nektos/act/issues/2551 ### Act version act version 0.2.69 ### Feature description For the [GitHub Local Actions](https://github.com/SanjulaGanepola/github-local-actions) extension, I am working on a pull request [here](https://github.com/SanjulaGanepola/github-local-actions/pull/95) to add support for displaying job and step level status for an executing workflow. As part of this, I am parsing the output of the command and always including the `--json` field. However, there are a few missing fields and messages to support this. The following new JSON fields will be needed: 1. Add `stepResult` for `Pre` stage steps to know if the pre stage succeeded or failed (`Post` stage already has this so it makes sense to keep it consistent). 2. Add `setupResult` and `cleanupResult` field for the final setup and final clean up message to know if it succeeded or failed. 3. Add the ability to distinguish setup steps from clean up steps. For example, this could be through some field called `type` that is either `setup` or `cleanup`. Another additional JSON message that would be very helpful would be when a [job is skipped](https://nektosact.com/usage/index.html#skipping-jobs) or a [step is skipped](https://nektosact.com/usage/index.html#skipping-steps). This is not as a high priority as the above 3 requirements, but it would make it very easy to display skipped jobs/steps in the tree view. In the PRs current state, I am unable to tell the pre stage step status, `Complete Job` status (aka clean up), and the `Setup Job` status (I temporarily marked it as always successful for now, but this is not ideal): ![image](https://github.com/user-attachments/assets/a7c22aa0-b33e-462f-985a-f6001fe50629)
kerem 2026-03-01 21:49:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1170
No description provided.