fix: ensure tags & commits are pushed

This commit is contained in:
2021-12-23 02:24:43 +01:00
parent a7894cbda9
commit 014d32112e
4 changed files with 39 additions and 14 deletions

View File

@ -236,9 +236,16 @@ A new catalogue copy can be published to the recipes repository by passing the
}
cataloguePath := path.Join(config.ABRA_DIR, "catalogue")
if err := gitPkg.Commit(cataloguePath, "**.json", internal.CommitMessage, internal.Dry, internal.Push); err != nil {
if err := gitPkg.Commit(cataloguePath, "**.json", internal.CommitMessage, internal.Dry); err != nil {
logrus.Fatal(err)
}
if internal.Push {
if err := gitPkg.Push(cataloguePath); err != nil {
logrus.Fatal(err)
}
}
}
return nil