You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I regularly have matrix entries with several values such as a string for a name, another string for use in identifying this in other matrix conditional checks etc. I also end up using matrix excludes frequently. GitHub Actions itself lets you exclude based on a partial match such as arch:matrix:arm below while the Actions linter here complains that that is missing the arch:name:ARM value.
I don't think that this feature has been documented anywhere, but I can confirm that this does actually work in GitHub Actions.
Based on this issue, I figured out that partial matching also works with arrays.
[1, 2, 3] is excluded by [], [1], [1, 2] or [1, 2, 3].
The same works with the include statement.
{ x: y, z: u } is excluded by {}, { x: y }, { z: u }, { x: y, z: u } Empty array / object literals cause weird behavior, even if you use it in a nested object, you may want to warn if you see them
(originally misreported at https://github.com/github/super-linter/issues/3016)
I regularly have matrix entries with several values such as a string for a name, another string for use in identifying this in other matrix conditional checks etc. I also end up using matrix excludes frequently. GitHub Actions itself lets you exclude based on a partial match such as
arch:
matrix:
arm
below while the Actions linter here complains that that is missing thearch:
name:
ARM
value.https://github.com/Chia-Network/actions/runs/6812575981?check_suite_focus=true#step:4:75
https://github.com/Chia-Network/actions/blob/4146f33b66d7a011e5429edcf900a3c4f0c61a95/.github/workflows/test-setup-python.yml#L19-L57
The text was updated successfully, but these errors were encountered: