Skip to content

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

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Feb 22, 2023

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 in continuous-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 🤷‍♂️

@gsteel gsteel added the Bug Something isn't working label Feb 22, 2023
@gsteel gsteel added this to the 1.23.0 milestone Feb 22, 2023
@gsteel gsteel force-pushed the multiline-output-fix branch from 26c0bb3 to aa1fd30 Compare February 22, 2023 11:18
@@ -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: |

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?

Copy link
Member Author

@gsteel gsteel Feb 22, 2023

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.

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.

Copy link
Member Author

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty <3

@gsteel gsteel marked this pull request as draft February 22, 2023 12:04
@gsteel gsteel marked this pull request as ready for review February 22, 2023 12:23
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gsteel!

@Ocramius Ocramius self-assigned this Feb 22, 2023
@Ocramius Ocramius merged commit b4c1308 into laminas:1.23.x Feb 22, 2023
@gsteel gsteel deleted the multiline-output-fix branch February 22, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants