Skip to content

Commit b59afb3

Browse files
authored
Update release workflow error handling and bump version to 0.0.22 (#489)
1 parent dbf5db4 commit b59afb3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ jobs:
158158
159159
# Check if branch already exists on remote
160160
if git ls-remote --exit-code --heads origin "refs/heads/$BRANCH" >/dev/null 2>&1; then
161-
echo "❌ Branch $BRANCH already exists on remote!"
162-
echo "Delete it or bump the version before re-running."
161+
MSG="❌ Branch $BRANCH already exists on remote! Delete it or bump the version before re-running."
162+
echo "$MSG"
163+
echo "$MSG" > /tmp/changelog_error.txt
163164
exit 1
164165
fi
165166
@@ -289,18 +290,20 @@ jobs:
289290
} >> "$GITHUB_STEP_SUMMARY"
290291
else
291292
{
292-
echo "# ❌ Release Creation Failed"
293+
echo "# ❌ Release Failed"
293294
echo ""
294295
echo "**Version:** ${{ steps.extract_version.outputs.tag_version }}"
295296
echo "**Tag:** ${{ steps.tag_name.outputs.tag_name }}"
296297
echo ""
297298
echo "## Error Details"
298299
echo ""
299300
echo "\`\`\`"
300-
if [ -f /tmp/release_output.txt ]; then
301+
if [ -f /tmp/changelog_error.txt ]; then
302+
cat /tmp/changelog_error.txt
303+
elif [ -f /tmp/release_output.txt ]; then
301304
cat /tmp/release_output.txt
302305
else
303-
echo "No error details captured"
306+
echo "No error details captured — check the job logs above for the failed step."
304307
fi
305308
echo "\`\`\`"
306309
} >> "$GITHUB_STEP_SUMMARY"

vscode-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "copilot-token-tracker",
33
"displayName": "Copilot Token Tracker",
44
"description": "Shows daily and monthly (estimated) GitHub Copilot token usage stats in VS Code status bar",
5-
"version": "0.0.21",
5+
"version": "0.0.22",
66
"publisher": "RobBos",
77
"engines": {
88
"vscode": "^1.110.0"

0 commit comments

Comments
 (0)