mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-12 10:51:01 +01:00
Update run
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user