Skip to content

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

Closed
@SanjulaGanepola

Description

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions