-
Notifications
You must be signed in to change notification settings - Fork 6
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
Install tools package publishing #1004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR assumes that pulumi/pulumi-package-publisher will then be published as v0.0.19 (the next version).
Recommend testing this using a specific commit before cutting v0.0.19, so you don't get into a situation where you need to keep cutting releases to fix problems if anything comes up.
d4dc478
to
0fc1da0
Compare
Good thought! Here's the downstream test commit pinning to pulumi/pulumi-package-publisher@4118cd6: pulumi/pulumi-xyz@fe9e392 Here's the test release run (v1.0.2-alpha.10) https://github.com/pulumi/pulumi-xyz/actions/runs/9692869239 |
- Upgrade action version in config. - Install tools before calling pulumi-package-publisher. - Remove version arguments.
0fc1da0
to
8f0f0a7
Compare
Rebased and removed the now-obsolete version arguments when calling the action. |
See: pulumi/pulumi-package-publisher@28c1190 Also install pulumictl via standard tool setup as prerequisite of pulumi-package-publisher.
Test showed issue that we can't call local reusable workflow without a checkout. So I've also removed the checkout phase from pulumi-package-publisher to be done before calling the pulumi-package-publisher action and before calling the setup-tools action. Next test run: https://github.com/pulumi/pulumi-xyz/actions/runs/9696437354 ✅ |
e61ebb0 - Check out repo to fix setup-tools. - pulumi/pulumi-package-publisher won't install its own tools.
A further thought on this ... we seem to have a lot of breaking changes already in the In addition to removing the tool setup and the repository checkout, we probably also want to remove the artifact restore because this needs to have knowledge of the inner workings of the workflow that's calling the action:
Given needing to keep all these things in sync, it would be easier for now to move the implementation for the |
Leave it to the caller to install the prerequisite tools as additional options might want to be used for caching etc. - Remove tool install steps. - Remove step to check out repository. - Remove all version inputs. - Add tool pre-requisites to the documentation. The other half of the work to integrate this breaking change into ci-mgmt is in: - pulumi/ci-mgmt#1004
Merging as-is for now ... can re-visit combining |
Re-use our own tool setups which can include additional options for caching rather than duplicating the setup logic into the publishing action.
This depends on first merging:
This PR assumes that
pulumi/pulumi-package-publisher
will then be published asv0.0.19
(the next version).