https://pulumi.com logo
Title
f

fresh-spring-82225

04/28/2023, 6:56 PM
Thanks @hallowed-photographer-31251 for fixing my github app config. Now that I’m trying to run a preview, the current problem is that I have an environment variable that I need to set programmatically. In github actions I do that by running a command and storing the result to $GITHUB_ENV. Is there an equivalent mechanism in pulumi deployments?
h

hallowed-photographer-31251

04/28/2023, 7:42 PM
you can run that step as a pre-run command and modify your environment via PULUMI_ENV https://www.pulumi.com/docs/intro/deployments/api/#operationcontext
f

fresh-spring-82225

04/28/2023, 8:49 PM
Great, thanks!
Although, now that I think about it, I might try running the command in the Pulumi program itself …
h

hallowed-photographer-31251

04/28/2023, 8:51 PM
depending on what you need to do you might need to modify the execution environment to install some additional dependencies — the docs should cover how to do that as well