Skip to content

Fix release workflow: add missing tag_name to action-gh-release#2

Merged
madkoding merged 2 commits intomainfrom
copilot/fix-release-workflow-error
Feb 26, 2026
Merged

Fix release workflow: add missing tag_name to action-gh-release#2
madkoding merged 2 commits intomainfrom
copilot/fix-release-workflow-error

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

softprops/action-gh-release@v2 fails with ⚠️ GitHub Releases requires a tag because the workflow triggers on push to main, not on tag creation — so github.ref is refs/heads/main and the action cannot infer a tag.

  • Add explicit tag_name: ${{ steps.version.outputs.version }} to the release step, using the version already computed upstream
- name: Create Release
  uses: softprops/action-gh-release@v2
  with:
    tag_name: ${{ steps.version.outputs.version }}
    name: ${{ steps.version.outputs.version }}

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…ease@v2

Co-authored-by: madkoding <333442+madkoding@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix workflow issue with GitHub Releases requiring a tag Fix release workflow: add missing tag_name to action-gh-release Feb 26, 2026
@madkoding madkoding marked this pull request as ready for review February 26, 2026 17:10
@madkoding madkoding self-requested a review as a code owner February 26, 2026 17:10
@madkoding madkoding merged commit 1fbde7b into main Feb 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants