<https://twitter.com/sheldon_hull/status/155960590...
# github-actions
s
https://twitter.com/sheldon_hull/status/1559605904743583744 Anyone know an answer to this? I'm just jumping back in actions, and the lack of being able to setup a object at the top feels odd. basically in azure pipelines
Copy code
parameters:
- name: builds
  type: object
  default:
  - version1
  - version2
  - version3
then you could use it later in templating approach with things like this. It provided an object/list. Only example I've found involves arg splitting via cli, which feels pretty hacky. Note: This is NOT a matrix build, which I know is supported. Instead it's an object list not a string list that can be used to iterate or loop through.
Copy code
- template: templates/install-version.yml@templates
   parameters:
       builds: ${{ parameters.builds }}
Is this where the power of Azure pipelines just shows it's robustness over the github actions features that don't have such rich templating features?
a
Have been after a feature like this as well, but can't see how to do it without storing multiple variables inside a single env variable.
s
This is probably the first time that I’ve hit something that I’m like azure pipelines NAILS that isn't elegant in another place. Not as portable as simple yaml pipelines but incredibly flexible for templating and beyond what a matrix build can do