mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
commit
069c097aad
6 changed files with 19 additions and 7 deletions
14
.github/workflows/package_linter.yml
vendored
14
.github/workflows/package_linter.yml
vendored
|
@ -1,6 +1,8 @@
|
|||
name: YunoHost apps package linter
|
||||
|
||||
on:
|
||||
# Allow to manually trigger the workflow
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
@ -12,7 +14,17 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install toml
|
||||
|
||||
- name: 'Clone YunoHost apps package linter'
|
||||
run: |
|
||||
|
|
2
.github/workflows/updater.yml
vendored
2
.github/workflows/updater.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
|||
workflow_dispatch:
|
||||
# Run it every day at 6:00 UTC
|
||||
schedule:
|
||||
- cron: '0 6 * * *'
|
||||
- cron: '0 6 */7 * *'
|
||||
jobs:
|
||||
updater:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -6,7 +6,7 @@ homeassistant:
|
|||
unit_system: __UNIT_SYSTEM__
|
||||
currency: __CURRENCY__
|
||||
country: __COUNTRY__
|
||||
time_zone: __TIME_ZONE__
|
||||
time_zone: "__TIME_ZONE__"
|
||||
external_url: "https://__DOMAIN__"
|
||||
auth_providers:
|
||||
- type: command_line
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"email": "ewilly@ewilly.fr"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 4.3.0"
|
||||
"yunohost": ">= 11.0.0"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
|
|
|
@ -116,7 +116,7 @@ chown -R $app: "$data_path"
|
|||
|
||||
# installation in a virtual environment
|
||||
ynh_script_progression --message="Installing Home Assistant in a virtual environment..."
|
||||
ynh_exec_fully_quiet myynh_install_homeassistant
|
||||
myynh_install_homeassistant
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
|
|
@ -77,8 +77,8 @@ then
|
|||
ynh_script_progression --message="Upgrading source files..."
|
||||
|
||||
myynh_install_python --python="$py_required_version"
|
||||
ynh_exec_fully_quiet myynh_upgrade_venv_directory
|
||||
ynh_exec_fully_quiet myynh_install_homeassistant
|
||||
myynh_upgrade_venv_directory
|
||||
myynh_install_homeassistant
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue