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

Use outputs of command as step outputs #131

Open
ffisc opened this issue Feb 9, 2024 · 2 comments
Open

Use outputs of command as step outputs #131

ffisc opened this issue Feb 9, 2024 · 2 comments
Assignees

Comments

@ffisc
Copy link

ffisc commented Feb 9, 2024

Describe the bug

It would be great it this worked

- id: step_1
    uses: nick-fields/retry@v3
    with:
      command: echo "foo=bar" >> $GITHUB_OUTPUT
- run: echo ${{ steps.step_1.outputs.foo }}

Expected behavior
See above

Screenshots
N/A

Logs
N/A

@AvivPeledTalon
Copy link

My team would also benefit from that.
I'm guessing it has to do with the fact that the action has some declared outputs and our new outputs aren't on the list (probably not nick-fields' fault but has more to do with Github actions' design)

@AvivPeledTalon
Copy link

What I ended up doing is using GITHUB_ENV instead of GITHUB_OUTPUTS to get data out of the retry action

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

3 participants