Api: repopath for alaskartv-app
This commit is contained in:
parent
f786c93d46
commit
b1df581f63
1 changed files with 4 additions and 3 deletions
5
main.go
5
main.go
|
@ -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", "."},
|
||||
|
|
Loading…
Reference in a new issue