This commit is contained in:
Alexandre
2022-04-27 16:59:30 +02:00
committed by GitHub
parent c49e34cb57
commit d8914c7d55

View File

@@ -183,7 +183,7 @@ if [ -f /data/"$BASENAME"/"$f"/updater.json ]; then
LOGINFO="... $SLUG : push to github" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
# if API is set
if bashio::config.has_value 'GITHUB_API_TOKEN'; then
if bashio::config.has_value 'gitmail'; then
git remote set-url origin "https://${GITUSER}:${GITHUB_API_TOKEN}@github.com/${REPOSITORY}" &>/dev/null
else
git remote set-url origin "https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}" &>/dev/null