mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
Update run.sh
This commit is contained in:
@@ -20,7 +20,8 @@ LOGINFO="... setting github API" && if [ $VERBOSE = true ]; then bashio::log.inf
|
||||
export GITHUB_API_TOKEN=$(bashio::config 'gitapi')
|
||||
fi
|
||||
|
||||
bashio::log.info "... parse addons"
|
||||
LOGINFO="... parse addons" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||
|
||||
for addons in $(bashio::config "addon|keys"); do
|
||||
SLUG=$(bashio::config "addon[${addons}].slug")
|
||||
REPOSITORY=$(bashio::config "addon[${addons}].repository")
|
||||
@@ -84,7 +85,7 @@ if [ $files != null ]; then
|
||||
git commit -m "Update to $LASTVERSION" /data/${BASENAME}/${SLUG}/CHANGELOG.md || true
|
||||
|
||||
#Git commit and push
|
||||
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 push | echo "No changes"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user