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 |
joaquimrocha
left a comment
There was a problem hiding this comment.
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 |
joaquimrocha
left a comment
There was a problem hiding this comment.
Almost there. Left a couple more comments.
1decf0b to
457fc1b
Compare
joaquimrocha
left a comment
There was a problem hiding this comment.
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 <vtaylor@microsoft.com>
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/chocolateyRun the script with the desired version number:
node choco-auto.js 0.27.0Wait for the script to execute. It will:
Review the changes to ensure correctness.
Notes