Question re: the GitHub Pulumi action (we haven't ...
# general
l
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
I have never tried to run multiple at a time. For context are these the same stack or different stacks?
l
Different projects entirely.
e
Would you mind sharing what your Github action file looks like?
l
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
@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
Yes, that probably would have worked. I actually split things into two separate workflows, which may have been overkill.
b
Separate Workflows solve the issue with the same approach, but on a higher level.
e
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
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
If you want, we can schedule a quick call and I can show you?
l
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.