Update run

This commit is contained in:
Alexandre
2021-01-30 20:57:40 +01:00
committed by GitHub
parent bae6fa3fe0
commit 7e8dc2f20f

View File

@@ -49,13 +49,13 @@ for addons in $(bashio::config "addon|keys"); do
#Change all instances of version
bashio::log.info "... $SLUG : updating files"
files=$(grep -rl '"'${CURRENT}'"' /hassio-addons/emby) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g'
git commit -m "Bot update" $files
files=$(grep -rl '"'${CURRENT}'"' /${BASENAME}/${SLUG}) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g'
git commit -m "Bot update to $CURRENT" $files
#Git commit and push
bashio::log.info "... $SLUG : push to master"
git remote set-url origin https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}
git push
git push
#Update the current flag
bashio::log.info "... $SLUG : updating current flag"
@@ -67,4 +67,4 @@ for addons in $(bashio::config "addon|keys"); do
else
bashio::log.info "Addon $SLUG is already up-to-date."
fi
done
done