fix: checkout release tag in publish workflows#19
Conversation
Publish workflows were checking out the original commit SHA instead of the new version-bumped commit created by release-pilot. This caused VSCode publish to fail with 'version already exists' because it was building the old version. - Add 'ref' input to vscode-publish.yml and jetbrains-publish.yml - Pass release tag from release-pilot to publish workflows - Checkout the tagged commit to ensure correct version is published
📝 WalkthroughWalkthroughGitHub Actions workflows are enhanced to support parameterized git references. The Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19 +/- ##
=======================================
Coverage 92.42% 92.42%
=======================================
Files 17 17
Lines 5462 5462
=======================================
Hits 5048 5048
Misses 414 414 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Fixes publish workflows checking out the wrong commit, causing "version already exists" errors.
Problem
When release-pilot runs, it:
But the downstream publish workflows (
vscode-publish.yml,jetbrains-publish.yml) were checking out the original commit SHA that triggered the workflow, not the new version-bumped commit. This caused the VSCode publish to fail with:Solution
refinput to both publish workflowsChanges
weekly_release.ymltagfrom release job, pass to publish workflowsvscode-publish.ymlrefinput, checkout specified refjetbrains-publish.ymlrefinput, checkout specified refSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.