Api: repopath for alaskartv-app

This commit is contained in:
nomadics9 2025-01-07 16:07:04 +03:00
parent f786c93d46
commit b1df581f63

View file

@ -18,6 +18,9 @@ import (
func updateVersion(repoPath string, serviceName string) (string, error) {
versionPath := fmt.Sprintf("%s/version.txt", repoPath)
if serviceName == "alaskartv" {
versionPath = fmt.Sprintf("%s/release.txt", repoPath)
}
newVersion := getVersion(serviceName)
godotenv.Load(".botenv")
@ -46,10 +49,8 @@ func updateVersion(repoPath string, serviceName string) (string, error) {
}
if serviceName == "alaskartv" {
versionPath = fmt.Sprintf("%s/release.txt", repoPath)
bumpVersionTv(repoPath)
}
os.WriteFile(versionPath, []byte(newVersion), 0644)
cmds := [][]string{
{"git", "-C", repoPath, "add", "."},