mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-03 15:44:58 +02: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
|
#Change all instances of version
|
||||||
bashio::log.info "... $SLUG : updating files"
|
bashio::log.info "... $SLUG : updating files"
|
||||||
|
|
||||||
files=$(grep -rl '"'${CURRENT}'"' /hassio-addons/emby) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g'
|
files=$(grep -rl '"'${CURRENT}'"' /${BASENAME}/${SLUG}) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g'
|
||||||
git commit -m "Bot update" $files
|
git commit -m "Bot update to $CURRENT" $files
|
||||||
|
|
||||||
#Git commit and push
|
#Git commit and push
|
||||||
bashio::log.info "... $SLUG : push to master"
|
bashio::log.info "... $SLUG : push to master"
|
||||||
git remote set-url origin https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}
|
git remote set-url origin https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}
|
||||||
git push
|
git push
|
||||||
|
|
||||||
#Update the current flag
|
#Update the current flag
|
||||||
bashio::log.info "... $SLUG : updating current flag"
|
bashio::log.info "... $SLUG : updating current flag"
|
||||||
@@ -67,4 +67,4 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
else
|
else
|
||||||
bashio::log.info "Addon $SLUG is already up-to-date."
|
bashio::log.info "Addon $SLUG is already up-to-date."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user