fix(ci): add target_commitish to release payload to fix HTTP 500 #333
Reference in New Issue
Block a user
Delete Branch "fix/ci-release-target-commitish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
publish-releasejob was missing thetarget_commitishfield in the Gitea release creation API payload. Without it, Gitea cannot resolve the tag to a git object and returns HTTP 500 withobject does not exist [id: , rel_path: ].Changes
COMMIT_SHA: ${{ github.sha }}to thepublish-releasejob env blocktarget_commitishin the release creation JSON payload so Gitea can resolve the tag to the correct commitSee also: go-gitea/gitea#21681
Closes #326