Describe the bug
Action fails in dry-run when there are multiple package versions return.
package1-0.1.0
package2-0.0.1
0.2.0
Error: Unable to process file command 'output' successfully.
Error: Invalid format 'package1-0.1.0'
To Reproduce
Steps to reproduce the behavior:
- Set up a mono repo with multiple packages
- Make changes to that impact at least 2 packages
Expected behavior
The action should not fail and returns all versions in the output.
Additional context
The issue is in the cog.sh file, line 50, it does not support multiple line output.
# current
echo "version=$VERSION" >>$GITHUB_OUTPUT
# fix
echo "version<<EOL" >> $GITHUB_OUTPUT
echo "$VERSION" >>$GITHUB_OUTPUT
echo "EOL" >> $GITHUB_OUTPUT
That would be a quick fix, but probably some new feature could be added like having an output named versions which could be an array of versions or a map<package, version>.
Release is to review as it only return the latest tags, but it should probably return all versions also.
# current
VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
echo "version=$VERSION" >>$GITHUB_OUTPUT
Describe the bug
Action fails in dry-run when there are multiple package versions return.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The action should not fail and returns all versions in the output.
Additional context
The issue is in the cog.sh file, line 50, it does not support multiple line output.
That would be a quick fix, but probably some new feature could be added like having an output named versions which could be an array of versions or a map<package, version>.
Release is to review as it only return the latest tags, but it should probably return all versions also.