Files
addons/git_pull/config.json
Julian Kaffke 2bc8d29eb4 git_pull: Prevent plugin from always restarting hass.io even if nothing has changed (#205)
* Prevent git module from always restarting hass.io

`git diff-tree -r --name-only --no-commit-id 'HEAD@{1}' HEAD)` always shows a difference. Getting the commit id prior to pulling is easy and comparing it to the one after pulling makes sure, that checking and restart is only done if ids have changed.

* Forgot to get the OLD_COMMIT id

* Better sorting and further comments

* Pleasing the linter

* Update config.json
2017-12-04 12:44:51 +01:00

33 lines
828 B
JSON

{
"name": "Git pull",
"version": "2.2",
"slug": "git_pull",
"description": "Simple git pull to update the local configuration",
"url": "https://home-assistant.io/addons/git_pull/",
"startup": "services",
"boot": "manual",
"hassio_api": true,
"map": ["config:rw"],
"options": {
"deployment_key": [],
"deployment_key_protocol": "rsa",
"repository": null,
"auto_restart": false,
"repeat": {
"active": false,
"interval": 300
}
},
"schema": {
"deployment_key": ["str"],
"deployment_key_protocol": "match(rsa|dsa|ecdsa|ed25519|rsa)",
"repository": "match((?:.+):(\/\/)?(.*?)(\\.git)(\/?|\\#[-\\d\\w._]+?))",
"auto_restart": "bool",
"repeat": {
"active": "bool",
"interval": "int"
}
},
"image": "homeassistant/{arch}-addon-git_pull"
}