added automatic git commit and push to ombi update
This commit is contained in:
parent
cb591017a2
commit
6092331c1d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue