https://pulumi.com logo
p

plain-lunch-16168

07/07/2023, 9:07 AM
Dear pulumi people, I want to set up staging infrastructure using pulumi with GitHub Actions. Therefore, I created an action via the yml as attached. However, I get the following error. The required environment variables are created as secrets.
Copy code
stderr: Command failed with exit code 255: pulumi preview --parallel 2147483647 --exec-agent pulumi/actions@v3 --color auto --exec-kind auto.local --event-log /tmp/automation-logs-preview-MohqPJ/eventlog.txt --stack beer/staging --non-interactive
Do you have some ideas, what could lead to the error?
could it be, that the work-dir is not the right one? I took the relative path within the repository
e

echoing-dinner-19531

07/07/2023, 10:30 AM
Is your "Pulumi.yaml" file in that work dir?
p

plain-lunch-16168

07/07/2023, 11:31 AM
In a previous step, I install the pip dependencies from
infrastructure/requirements.txt
successfully. The
work-dir
is set to
infrastructure/prefect-worker/
e

echoing-dinner-19531

07/07/2023, 11:37 AM
Is there no other output from the job?
p

plain-lunch-16168

07/07/2023, 11:49 AM
Here is the full output of the step in github actions
e

echoing-dinner-19531

07/07/2023, 11:57 AM
This looks like https://github.com/pulumi/actions/issues/778. I think that got closed but was only fixed for nodejs, not python. Can you comment on that ticket with this output, I'll get it re-opened. In the meantime you can copy the workaround from https://github.com/pulumi/actions/issues/778#issuecomment-1327006031
p

plain-lunch-16168

07/07/2023, 12:24 PM
Thanks a lot for the quick support!
This helped!
Now,
pulumi preview
is successful and I get a different error, which I will post in a new thread 🙂