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

Request: Define Outputs #28

Closed
1 task done
whatisdot opened this issue Oct 18, 2022 · 2 comments
Closed
1 task done

Request: Define Outputs #28

whatisdot opened this issue Oct 18, 2022 · 2 comments

Comments

@whatisdot
Copy link
Contributor

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Triggering a pipeline works as expected, but there's no way to consume and use the response in following steps. To do that, we need the action to define outputs for the job.

Describe the solution you'd like

Descriptions taken from the CircleCI API documentation:

outputs:
  id:
    description: The unique ID of the pipeline.
  state:
    description: The current state of the pipeline.
  number:
    description: The number of the pipeline.
  created_at:
    description: The date and time the pipeline was created.

Teachability, documentation, adoption, migration strategy

Descriptions taken from the CircleCI API documentation.

Outputs

Field Data Type Description
id string (uuid) The unique ID of the pipeline.
state string (Enum: "created" "errored" "setup-pending" "setup" "pending") The current state of the pipeline.
number integer (int64) The number of the pipeline.
created_at string (date-time) The date and time the pipeline was created.

What is the motivation / use case for changing the behavior?

Adds a backwards-compatible feature that enables teams to use the pipeline ID and date created in downstream workflow actions.

@vaxinate
Copy link

It would be really helpful to have at least the pipeline ID as outputs for use in other steps 🙏

@whatisdot
Copy link
Contributor Author

@vaxinate I put up #47 with testing steps if you want to try it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants