added automatic git commit and push to ombi update

This commit is contained in:
mc-fucker 2022-09-25 01:34:44 +02:00
parent cb591017a2
commit 6092331c1d

View file

@ -22,9 +22,7 @@ updateVersion()
}
oldversion="$(grep -Po '(?<=version = ").*(?=";)' default.nix)"
echo "$oldversion"
newversion="$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/Ombi-App/Ombi/releases | jq -r ".[0].tag_name" | sed "s/^v//")"
echo "$newversion"
version="$newversion"
if [[ "$oldversion" == "$newversion" ]]; then
@ -37,3 +35,5 @@ updateVersion $newversion
updateHash $newversion x64 linux
updateHash $newversion arm64 linux
updateHash $newversion x64 osx
git pull && git add "$dirname"/default.nix && git commit -m "updated ombi from $oldversion to $newversion" && git push