Skip to content

Add automatic stdout, stderr and exitcode outputs per step #919

@halberom

Description

@halberom

Describe the enhancement
Add automatic stdout, stderr and exitcode outputs per run step.

This would make it very useful for things like generating changes in one step/job, and then adding them to a PR comment or sending them in a Slack notify in another.

Code Snippet

steps:
  - uses: actions/checkout@v2
  - name: get python version
    id: python_version
    run: python -V
  - name: output python version
    run: echo ${{ steps.python_version.outputs.stdout }}

Additional information
See also this community post for another example - https://xhtogithub.hejiu.icumunity/t/suggest-automatic-output-id-for-stdout-stderr/17419

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions