feat: link direct to tag

This commit is contained in:
decentral1se 2021-12-28 03:40:18 +01:00
parent 24882e95b4
commit 8785f66391
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ func createReleaseFromTag(recipe recipe.Recipe, tagString, mainAppVersion string
logrus.Fatal(err)
}
if err := pushRelease(recipe); err != nil {
if err := pushRelease(recipe, tagString); err != nil {
logrus.Fatal(err)
}
@ -272,7 +272,7 @@ func tagRelease(tagString string, repo *git.Repository) error {
return nil
}
func pushRelease(recipe recipe.Recipe) error {
func pushRelease(recipe recipe.Recipe, tagString string) error {
if internal.Dry {
logrus.Info("dry run: no changes published")
return nil
@ -294,7 +294,7 @@ func pushRelease(recipe recipe.Recipe) error {
}
}
url := fmt.Sprintf("%s/%s/tags", config.REPOS_BASE_URL, recipe.Name)
url := fmt.Sprintf("%s/%s/tags/%s", config.REPOS_BASE_URL, recipe.Name, tagString)
logrus.Infof("new release published: %s", url)
return nil