https://pulumi.com logo
#general
Title
# general
l

little-cartoon-10569

09/29/2023, 1:36 AM
Question re: the GitHub Pulumi action (we haven't moved to Deployments yet): In a monorepo with multiple Pulumi projects, is it possible to run two Pulumi Actions in a single workflow? I'm getting a clash when the 2nd action is attempting to run, saying that /home/runner/.pulumi isn't empty. I can't see anything at https://github.com/pulumi/actions that helps me work around this.
e

elegant-gigabyte-8733

10/02/2023, 10:45 PM
I have never tried to run multiple at a time. For context are these the same stack or different stacks?
l

little-cartoon-10569

10/02/2023, 10:59 PM
Different projects entirely.
e

elegant-gigabyte-8733

10/03/2023, 1:09 AM
Would you mind sharing what your Github action file looks like?
l

little-cartoon-10569

10/03/2023, 1:30 AM
Final step errors out with something like
Copy code
Install destination is /home/runner/.pulumi
successfully downloaded <https://get.pulumi.com/releases/sdk/pulumi-v3.86.0-linux-x64.tar.gz>
Successfully created /home/runner/.pulumi
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/.pulumi -f /home/runner/work/_temp/b0307b17-de51-463c-b83a-280f96a156bb
Successfully extracted /home/runner/work/_temp/b0307b17-de51-463c-b83a-280f96a156bb to /home/runner/.pulumi
Error: ENOTEMPTY: directory not empty, rename '/home/runner/.pulumi/pulumi' -> '/home/runner/.pulumi/bin'
b

big-architect-71258

10/03/2023, 6:39 PM
@little-cartoon-10569 running the two actions in separate jobs? Different jobs run on different agents as far as I know. So two Pulumi Actions running on different jobs shouldn't interfere each other.
I think you could even use a matrix, if you have more than two Pulumi Actions to run.
l

little-cartoon-10569

10/03/2023, 7:36 PM
Yes, that probably would have worked. I actually split things into two separate workflows, which may have been overkill.
b

big-architect-71258

10/03/2023, 7:47 PM
Separate Workflows solve the issue with the same approach, but on a higher level.
e

elegant-window-55250

10/08/2023, 9:32 AM
I have many examples where I use matrix to run multiple at the same time. ā€¢ https://github.com/bjerkio/conf ā€¢ https://github.com/getbranches/conf
Hope that helps šŸ™‚
l

little-cartoon-10569

10/08/2023, 9:12 PM
Is that a matrix of 1 item (
include
) with two possible values? A 1x2 matrix? That's taking a feature and really making it your own šŸ™‚
I can't find the matrix in getbranches, just in bjerkio?
e

elegant-window-55250

10/09/2023, 1:48 PM
If you want, we can schedule a quick call and I can show you?
l

little-cartoon-10569

10/09/2023, 7:21 PM
Thanks! I think the example I've found has been more than helpful. I didn't even know about the feature yesterday. The GitHub docs plus your example have got me well underway.