-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimization: Skip Download Pulumi CLI when already present #789
Comments
I'm interested in helping with this issue. |
Awesome! Thanks @ehafenmaier! Let me know if you need any input :) |
@RobbieMcKinstry I do have few questions based on this issue being mentioned in #674:
|
@ehafenmaier I will answer your second and third questions first because they're easier! 😅
Yes! Very convenient that already exists! ;D It's a little gnarly, so it might be wise to verify it works as expected.
Exactly! Bingo!
The behavior we need is slightly more complex. I think the workflow looks like this:
Step 3 will require parsing the stdout of If it's easier to rewrite Does that make sense? I'm sorry if my explanation is a confusing. Thanks very much for your assistance! <3 |
Clear as mud @RobbieMcKinstry 😜 In all seriousness, your explanation makes perfect sense. I'm happy to see my approach wasn't too far off the mark. I'm pretty sure I have enough to proceed. Thanks again for the input! |
Hello!
Issue details
With the exception of MacOS and self-hosted runners, Pulumi comes installed on GitHub Actions runners by default. Right now, when a user does not specify a specific version of Pulumi to use, this action defaults to
latest
. Instead, we should use whatever version of Pulumi is installed on the runner, if one exists. This will remove the need to re-download Pulumi for the vast majority of users (anyone who is using Windows or Ubuntu runners).As described in #787, this would eliminate
~100MBs
of network traffic. And, detailed in #674, it would allow the action to be used in the context of where outbound traffic is blocked.Affected area/feature
The
downloadCli
function.The text was updated successfully, but these errors were encountered: