Skip to content

Commit

Permalink
read tagName from method
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M committed Mar 16, 2023
1 parent 1e0815e commit 87a8261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update/gh.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (d *GHReleaseDownloader) GetAssetIDFromRelease(latest *github.RepositoryRel
builder := &strings.Builder{}
builder.WriteString(d.AssetName)
builder.WriteString("_")
builder.WriteString(strings.TrimPrefix(*latest.TagName, "v"))
builder.WriteString(strings.TrimPrefix(latest.GetTagName(), "v"))
builder.WriteString("_")
if strings.EqualFold(runtime.GOOS, "darwin") {
builder.WriteString("macOS")
Expand Down

0 comments on commit 87a8261

Please sign in to comment.