Closed thclark closed 1 year ago
::set-output...
only seems to work on a single line output. I attempted to use it for this action but it turns out it's very difficult for multi-line outputs (the pull request description has many lines). There are supposed workarounds but I couldn't get any of them working. Do you know of a good way to get around this?
@thclark some useful info about changes in setting outputs from GitHub 2 days ago: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
I'm now able to do this because of the changes GitHub has made 🥳
Feature request
Use Case
We want to be able to reuse the text output in subsequent jobs or reusable workflows
Current state
Current usage instructions look like this:
What's happening is that the action is putting outputs into the github actions
env
ironment, visible to all subsequent actions but not usable in subsequent jobs. This comes from before GitHub had a way of dealing with outputs.GitHub actions now allows steps to run complex commands, including setting outputs which can then be reused in subsequent jobs (only the subsequent jobs where you want them) and reusable workflows like this.
Suggested action
Alter the outputs to be set via command rather than attached to env, update usage instructions accordingly.