-
Notifications
You must be signed in to change notification settings - Fork 154
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
Mistaken type checking error #294
Comments
The error looks correct. The - run: echo '${{ toJSON(matrix.PR) }}' |
But - run: echo '${{ matrix.PR }}' is not an error. |
That's because the result of the filter syntax happened to be an array with a single element, am I correct? If the result contained two elements, the result would've been different. |
No, that is not correct.
Please see: https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs |
Oh, OK, I misread your workflow. Yes, since it is a row of matrix, the value should be scalar. Thanks for your explanation. |
Thanks, @rhysd! |
@carlocab This was a bug of actionlint. Thank you for your report with the nice reproduction. |
I'm getting the following error which I believe to be mistaken:
Here's a minimal reproducer.
The value of
matrix.PR
is, of course, an array. actionlint doesn't seem to recognise here that I will have a different job dispatched for each entry in thematrix.PR
array, and each job will only see one value formatrix.PR
.The text was updated successfully, but these errors were encountered: