Skip to content

Commit 23dc961

Browse files
committed
improve output when versions already exist
1 parent 317d4cc commit 23dc961

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ jobs:
329329
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
330330

331331
- name: Check marketplace version
332+
id: version_check
332333
run: |
333334
LOCAL_VERSION="${{ needs.release.outputs.version }}"
334335
echo "Local version: $LOCAL_VERSION"
@@ -406,6 +407,10 @@ jobs:
406407
echo ""
407408
if [ "${{ steps.publish.outcome }}" == "success" ]; then
408409
echo "✅ Extension v${{ needs.release.outputs.version }} published to the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=RobBos.copilot-token-tracker)"
410+
elif [ "${{ steps.version_check.outcome }}" == "failure" ]; then
411+
echo "⏭️ Publish skipped — v${{ needs.release.outputs.version }} is already live on the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=RobBos.copilot-token-tracker)."
412+
echo ""
413+
echo "Bump the version in \`vscode-extension/package.json\` before publishing again."
409414
else
410415
echo "❌ Failed to publish v${{ needs.release.outputs.version }} to marketplace."
411416
echo ""

0 commit comments

Comments
 (0)