Replies: 4 comments 12 replies
-
Hallo! This is not a bug, nor a problem on the side of
This an error message from GitHub telling you that your workflow file is invalid. I assume that this is the workflow in question. Note that supported_mod_loaders: [fabric, quilt] The problem is you try to provide it as an input to a GitHub Action (which just happens to be Therefore, before providing any value to any action (once again, the problem is not limited to If you check the loaders: |
fabric
forge
quilt As you can see, this is not an array; it's a multiline string. It's not because I prefer working with strings over proper arrays and other complex objects, but rather because GitHub restricts action developers from receiving anything other than strings. Thanks to yet another brilliant decision at Microsoft, we find ourselves having to do double the amount of work:
But, well, it is what it is. To convert an array you obtained from the matrix to a string, you can use the following syntax: loaders: ${{ join(matrix.supported_mod_loaders, ' ') }} Hope this helps! :) |
Beta Was this translation helpful? Give feedback.
-
Here you go: https://github.com/Faboslav/friends-and-foes-beekeeper-hut/blob/master/.github/workflows/publish.yml, it's currently work in progress, but i am testing it step by step and i am currently stuck on this thing. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
At this point, it would be very helpful to be able to do some kind of test or dry run on my setup, maybe i can help with that functionality, if wanted |
Beta Was this translation helpful? Give feedback.
-
Description
Hello there, i am trying to do little bit more complex action on my side, my github (matrix)context is like the following for this specific run:
If i want to use mentioned
supported_mod_loaders
in theloaders
field as following:${{ matrix.supported_mod_loaders }}
it doesnt work with error:Error: The template is not valid. .github/workflows/publish.yml (Line: 139, Col: 30): A sequence was not expected
.Expected Behavior
Mentioned in general description.
Actual Behavior
Mentioned in general description.
Version
3.3.0
Environment
GitHub Actions
Configuration
No response
Logs
No response
Other Information
No response
Beta Was this translation helpful? Give feedback.
All reactions