Lint the generated files

This commit is contained in:
Jesse Hills 2021-02-15 08:28:48 +13:00
parent 34dc495394
commit 6b9694fad1
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
2 changed files with 9 additions and 3 deletions

View File

@ -10,6 +10,14 @@ jobs:
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2
- name: 🛠 Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: 🛠 Install dependencies
run: pip install -r script/requirements.txt
- name: 🛠 Generate files from template
run: python script/generate.py dev beta stable
- name: 🚀 Run Home Assistant Add-on Lint on ${{ matrix.channel }}
uses: frenck/action-addon-linter@v2
with:

View File

@ -41,9 +41,7 @@ def main(args):
if channel == Channel.dev:
path = dir_ / 'build.json'
build_conf = {
'squash': False,
"build_from": {arch: base_image.format(arch=arch) for arch in conf['arch']},
"args": {}
"build_from": {arch: base_image.format(arch=arch) for arch in conf['arch']}
}
with open(path, 'w') as f:
json.dump(build_conf, f, indent=2, sort_keys=True)