This message was deleted.
s
This message was deleted.
👍 1
w
Hello!
how do you do it via automation api?
Are you trying to use Automation API or the GitHub Action? Here's a recent explanation of how to use
config-map
in the action. It's a relatively new feature; we need to improve its documentation for sure.
h
We use the Github Action, yes. But the Github Actions internally uses the Automation API afaik. The explanation shows how to use a string, how about a list of strings?
w
I would expect a list of strings to use YAML list notation:
Copy code
config-map: "{env: {value: dev, secret: false}, my-app:releasetag: { value: ["hello", "world"], secret: false}}"
I could be wrong tbh 🤷‍♂️
h
I tried to set it with: "some-key":{"value":["some-value-a","some-value-b"]} which leads to a comma-separated string some-value-a,some-value-b in the Pulumi.stack.yaml.
w
Ah, hm, could you try single quotes?
Within the array
Possible you need whitespace around the list too.
h
I would guess single ticks, will not help, but I can try
Single ticks even break the JSON
w
Damn. Could you open an issue? Sorry for the difficulty here.
h
w
Thank you!
h
There's an update, which is quite interesting: https://github.com/pulumi/pulumi/issues/11649#issuecomment-1360443505