Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ jobs:
fi

- name: Bump version
id: bump
if: steps.bump-type.outputs.type != ''
run: bump ${{ steps.bump-type.outputs.type }} --brave
run: |
bump ${{ steps.bump-type.outputs.type }} --brave
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
if: steps.bump.outputs.tag != ''
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition checks if the tag output is not empty, but if the bump step is skipped (when bump-type is empty), the tag output won't exist at all. This will cause a workflow error. The condition should also verify that the bump step was executed: steps.bump.outcome == 'success' && steps.bump.outputs.tag != ''

Suggested change
if: steps.bump.outputs.tag != ''
if: steps.bump.outcome == 'success' && steps.bump.outputs.tag != ''

Copilot uses AI. Check for mistakes.
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.bump.outputs.tag }}
generate_release_notes: true
Loading