Fix release workflow with explicit release_tag parameter#2
Conversation
Co-authored-by: fourdollars <39708+fourdollars@users.noreply.github.com>
Co-authored-by: fourdollars <39708+fourdollars@users.noreply.github.com>
Co-authored-by: fourdollars <39708+fourdollars@users.noreply.github.com>
Co-authored-by: fourdollars <39708+fourdollars@users.noreply.github.com>
|
@copilot Did you see |
Yes, I saw that error in the CI logs from workflow run 20770205360. The logs showed: The command was passing both |
|
@copilot Can you just fix the usage of go-release-action instead of replacing it with other tool? |
Co-authored-by: fourdollars <39708+fourdollars@users.noreply.github.com>
Done in commit d952667. Reverted to using |
|
@copilot Could you just use tag or releasename? |
Co-authored-by: fourdollars <39708+fourdollars@users.noreply.github.com>
Done in commit f430738. Now using |
Release workflow was failing with
tag or releasename is mandatory but not setdespite tag being correctly extracted from the release event. Root cause:wangyoucao577/go-release-action@v1(v1.55+) changed how it handles release information in v1.47+. When neitherrelease_tagnorrelease_nameis explicitly set, the action's auto-detection can fail, causing both parameters to be empty and triggering validation failure in the uploader.Changes
release_tag: ${{ github.ref_name }}parameter to explicitly provide the release tag from the GitHub event contextgo-release-action@v1(latest) instead of pinning to an older versionactions/checkoutfrom v3 to v4 for better compatibilitylp-api-{version}-{os}-{arch}for consistencyBy explicitly setting
release_tag, the action receives a proper-tag=<value>parameter without the problematic empty-releasename=, avoiding the validation error while using the latest version of the action with all bug fixes and improvements.Original prompt
Created from Copilot CLI via the copilot delegate command.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.