mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-23 01:01:50 +02:00
Update run.sh
This commit is contained in:
@@ -97,13 +97,10 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
#Git commit and push
|
#Git commit and push
|
||||||
git add -A # add all modified files
|
git add -A # add all modified files
|
||||||
git commit -m "Update to ${LASTVERSION}" >/dev/null
|
git commit -m "Update to ${LASTVERSION}" >/dev/null
|
||||||
#git commit -m "Update to ${LASTVERSION}" $files || true
|
|
||||||
#git commit -m "Update to ${LASTVERSION}" /data/${BASENAME}/${SLUG}/config.json|| true
|
|
||||||
#git commit -m "Update to ${LASTVERSION}" /data/${BASENAME}/${SLUG}/CHANGELOG.md || true
|
|
||||||
|
|
||||||
LOGINFO="... $SLUG : push to github" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
LOGINFO="... $SLUG : push to github" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
git remote set-url origin "https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}" | echo
|
git remote set-url origin "https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}" | echo
|
||||||
git push >/dev/null | echo "No changes"
|
git push >/dev/null
|
||||||
|
|
||||||
#Log
|
#Log
|
||||||
bashio::log.warning "Addon $SLUG updated from ${CURRENT} to ${LASTVERSION}"
|
bashio::log.warning "Addon $SLUG updated from ${CURRENT} to ${LASTVERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user