-
-
Notifications
You must be signed in to change notification settings - Fork 17
Prevent multiline matrix payload from causing issues in GitHub workflow output #190
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
Conversation
…ow output Signed-off-by: George Steel <[email protected]>
26c0bb3
to
aa1fd30
Compare
Signed-off-by: George Steel <[email protected]>
@@ -25,7 +25,11 @@ jobs: | |||
# This provides a dedicated "check" to asynchronously test all integration tests within the tests/ directory | |||
# The project name from the tests/ directory is then re-used within the "qa" job to run the generated "container" | |||
# within that directory. | |||
run: cd tests; echo "matrix=[\"$(ls -d * | tr '\n' ' ' | sed 's/ $//' | sed 's/ /\",\"/g')\"]" >> $GITHUB_OUTPUT | |||
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed ASWELL as pinning the version of jq-action
? I would hope this change would be all that's needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so - But, if there's any chance that matrix
is multiline, at least the case is covered. It should probably always have been like this WRT #150
We may be able to stick with jq-action@v2
if the multiline
option works out for us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change needs reverting as "matrix=[\"$(ls -d * | tr '\n' ' ' | sed 's/ $//' | sed 's/ /\",\"/g')\"]"
should be on a single line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll send in another patch @internalsystemerror for 1.23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty <3
Signed-off-by: George Steel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gsteel!
Makes CI green.
It appears that sergeysova/[email protected] was at fault here, and enabling its
multiline
option solves the issue.This patch also updates usage of
$GITHUB_OUTPUT
incontinuous-integration.yml
in case the matrix generated there is also multiline.Deprecations are still being issued about
set-output
but I'm not sure where these are coming from 🤷♂️