-
Notifications
You must be signed in to change notification settings - Fork 183
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
workflows: Add automation for choco upgrade #2691
Conversation
0326294
to
49cb251
Compare
note if you want to test the pipeline workflow have it push to the branch, just swap these two parts here in commented out places and push to the branch, this should then kick off the build workflows to where you can click on |
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.
Thanks @vyncent-t . I left a couple of comments.
1e50b33
to
952bf34
Compare
removed the auto script and this now runs when updating the tag note: testing when the current main is already updated with the new nuget pkg and hash will create a PR that has no changes to add as this runs for the newest |
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.
Almost there. Left a couple more comments.
1decf0b
to
457fc1b
Compare
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.
You forgot to remove the checksums.txt file from git. I also think you should merge the steps that concern the checksums.txt: Download + Extract Data + Remove file -> All in one step.
This is because we then contain the use of the checksums file only to one step, which can be useful.
457fc1b
to
338a57a
Compare
Signed-off-by: Vincent T <[email protected]>
338a57a
to
b298ed3
Compare
Description
Solves issue #2683
This PR introduces an automation workflow and a supporting script to streamline the process of updating the Chocolatey package for Headlamp. The automation workflow automatically updates the headlamp.nuspec file and the checksum in app/windows/chocolatey/tools/chocolateyinstall.ps1, then creates a new PR with the changes for the updated version.
Key Changes
New Automation Workflow:
choco-auto.js Script:
Script Requirements:
How to Use the Script Manually
Navigate to the Chocolatey directory:
cd app/windows/chocolatey
Run the script with the desired version number:
node choco-auto.js 0.27.0
Wait for the script to execute. It will:
Review the changes to ensure correctness.
Notes