mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-15 12:39:23 +02:00
Add app_config linter compatibility action
This commit is contained in:
32
.github/actions/addon-linter/action.yml
vendored
Normal file
32
.github/actions/addon-linter/action.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Home Assistant add-on linter compatibility
|
||||
description: Normalize current app_config map names for the upstream add-on linter
|
||||
|
||||
inputs:
|
||||
path:
|
||||
description: Path to the add-on directory
|
||||
required: true
|
||||
community:
|
||||
description: Enable upstream community checks
|
||||
required: false
|
||||
default: "false"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Prepare manifest for upstream linter
|
||||
shell: bash
|
||||
env:
|
||||
SOURCE_PATH: ${{ inputs.path }}
|
||||
DESTINATION_PATH: ${{ github.workspace }}/.addon-lint
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 "$GITHUB_ACTION_PATH/../../scripts/prepare_addon_lint_config.py" \
|
||||
"$SOURCE_PATH" \
|
||||
"$DESTINATION_PATH"
|
||||
|
||||
- name: Run upstream Home Assistant add-on linter
|
||||
uses: frenck/action-addon-linter@v2
|
||||
with:
|
||||
path: ./.addon-lint
|
||||
community: ${{ inputs.community }}
|
||||
Reference in New Issue
Block a user