Skip to content

Commit

Permalink
Merge pull request #52 from arjen-ag5/main
Browse files Browse the repository at this point in the history
Prefix was not outputted
  • Loading branch information
flaticols authored Mar 2, 2023
2 parents 51e5ac4 + 8560b34 commit ab54a95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions commands/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ func CreateCommand() *cobra.Command {
return fmt.Errorf("failed to get new tag, %w", err)
}

_, err = client.CreateRelease(newTag.StringWithPrefix(params.TagPrefix), params.Owner, params.Repository, false, true)
newTagString := newTag.StringWithPrefix(params.TagPrefix)
_, err = client.CreateRelease(newTagString, params.Owner, params.Repository, false, true)
if err != nil {
return fmt.Errorf("failed to create release, %w", err)
}

gha.SetOutput("tag", newTag.String())
gha.SetOutput("tag", newTagString)

return nil
},
Expand Down
3 changes: 2 additions & 1 deletion inputs/labels.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package inputs

import (
"github.com/google/go-github/v48/github"
"regexp"
"strconv"
"strings"

"github.com/google/go-github/v48/github"
)

type PullRequestLabels struct {
Expand Down

0 comments on commit ab54a95

Please sign in to comment.