retry icon indicating copy to clipboard operation
retry copied to clipboard

Use outputs of `command` as step outputs

Open ffisc opened this issue 1 year ago • 2 comments

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

ffisc avatar Feb 09 '24 18:02 ffisc

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 avatar Mar 06 '24 08:03 AvivPeledTalon

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

AvivPeledTalon avatar Mar 06 '24 11:03 AvivPeledTalon