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

Add support for additional JSON fields to output setup, clean, and pre stage step status #2551

Open
SanjulaGanepola opened this issue Nov 30, 2024 · 0 comments · May be fixed by #2552
Open
Labels
kind/feature-request New feature or request

Comments

@SanjulaGanepola
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant