diff --git a/.github/workflows/check-archived.yml b/.github/workflows/check-archived.yml index bab37d4..60d5ec5 100644 --- a/.github/workflows/check-archived.yml +++ b/.github/workflows/check-archived.yml @@ -1,30 +1,28 @@ name: "Check Archived" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Archived" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Install dependencies - run: | - python3 -m pip install setuptools wheel - python3 -m pip install aiogithubapi + - name: Install dependencies + run: | + python3 -m pip install setuptools wheel + python3 -m pip install aiogithubapi - - name: Check archived - run: python3 -m scripts.check.archived - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Check archived + run: python3 -m scripts.check.archived + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/check-brands.yml b/.github/workflows/check-brands.yml index b77e612..90cebc9 100644 --- a/.github/workflows/check-brands.yml +++ b/.github/workflows/check-brands.yml @@ -1,36 +1,34 @@ name: "Check Brands" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Brands" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Set category - id: category - run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" + - name: Set category + id: category + run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" - - name: Install dependencies - if: steps.category.outputs.category == 'integration' - run: | - python3 -m pip install setuptools wheel - python3 -m pip install aiogithubapi + - name: Install dependencies + if: steps.category.outputs.category == 'integration' + run: | + python3 -m pip install setuptools wheel + python3 -m pip install aiogithubapi - - name: Check home-assistant/brands - if: steps.category.outputs.category == 'integration' - run: python3 -m scripts.check.brands - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Check home-assistant/brands + if: steps.category.outputs.category == 'integration' + run: python3 -m scripts.check.brands + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/check-fork.yml b/.github/workflows/check-fork.yml index 788269a..371523f 100644 --- a/.github/workflows/check-fork.yml +++ b/.github/workflows/check-fork.yml @@ -1,30 +1,28 @@ name: "Check Fork" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Fork" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Install dependencies - run: | - python3 -m pip install setuptools wheel - python3 -m pip install aiogithubapi + - name: Install dependencies + run: | + python3 -m pip install setuptools wheel + python3 -m pip install aiogithubapi - - name: Check fork - run: python3 -m scripts.check.fork - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Check fork + run: python3 -m scripts.check.fork + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/check-hacs-manifest.yml b/.github/workflows/check-hacs-manifest.yml index 1421794..8c43554 100644 --- a/.github/workflows/check-hacs-manifest.yml +++ b/.github/workflows/check-hacs-manifest.yml @@ -1,23 +1,21 @@ name: "Check HACS Manifest" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check HACS Manifest" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Check HACS manifest - run: python3 -m scripts.check.hacs_manifest + - name: Check HACS manifest + run: python3 -m scripts.check.hacs_manifest diff --git a/.github/workflows/check-hacs.yaml b/.github/workflows/check-hacs.yaml index 3bcda28..fd7c4e3 100644 --- a/.github/workflows/check-hacs.yaml +++ b/.github/workflows/check-hacs.yaml @@ -1,31 +1,29 @@ name: "Check HACS" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check HACS" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Set category - id: category - run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" + - name: Set category + id: category + run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" - - name: Set repository - id: repository - run: echo "::set-output name=repository::$(python3 -m scripts.changed.repo)" + - name: Set repository + id: repository + run: echo "::set-output name=repository::$(python3 -m scripts.changed.repo)" - - name: HACS validation - uses: "hacs/integration/action@master" - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - env: - REPOSITORY: "${{ steps.repository.outputs.repository }}" - CATEGORY: "${{ steps.category.outputs.category }}" \ No newline at end of file + - name: HACS validation + uses: "hacs/integration/action@master" + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + env: + REPOSITORY: "${{ steps.repository.outputs.repository }}" + CATEGORY: "${{ steps.category.outputs.category }}" \ No newline at end of file diff --git a/.github/workflows/check-hassfest.yml b/.github/workflows/check-hassfest.yml index c5a6e2e..43f9277 100644 --- a/.github/workflows/check-hassfest.yml +++ b/.github/workflows/check-hassfest.yml @@ -1,37 +1,35 @@ name: "Check hassfest" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check hassfest" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Set category - id: category - run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" + - name: Set category + id: category + run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" - - name: Pull Home Assistant Container - if: steps.category.outputs.category == 'integration' - run: docker pull homeassistant/home-assistant:beta + - name: Pull Home Assistant Container + if: steps.category.outputs.category == 'integration' + run: docker pull homeassistant/home-assistant:beta - - name: Run hassfest - if: steps.category.outputs.category == 'integration' - run: | - integration=$(python3 -m scripts.helpers.integration_path) - domain=$(python3 -m scripts.helpers.domain) - docker run --entrypoint="" -v "$integration":"/$domain" \ - homeassistant/home-assistant:beta python3 -m \ - script.hassfest --action validate --integration-path "/$domain" \ No newline at end of file + - name: Run hassfest + if: steps.category.outputs.category == 'integration' + run: | + integration=$(python3 -m scripts.helpers.integration_path) + domain=$(python3 -m scripts.helpers.domain) + docker run --entrypoint="" -v "$integration":"/$domain" \ + homeassistant/home-assistant:beta python3 -m \ + script.hassfest --action validate --integration-path "/$domain" \ No newline at end of file diff --git a/.github/workflows/check-images.yml b/.github/workflows/check-images.yml index 5576840..2fafe3f 100644 --- a/.github/workflows/check-images.yml +++ b/.github/workflows/check-images.yml @@ -1,23 +1,21 @@ name: "Check Images" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Images" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Check images - run: python3 -m scripts.check.images + - name: Check images + run: python3 -m scripts.check.images diff --git a/.github/workflows/check-info.yml b/.github/workflows/check-info.yml index bcddd54..bd1a8de 100644 --- a/.github/workflows/check-info.yml +++ b/.github/workflows/check-info.yml @@ -1,23 +1,21 @@ name: "Check Info" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Info" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Check info - run: python3 -m scripts.check.info + - name: Check info + run: python3 -m scripts.check.info diff --git a/.github/workflows/check-manifest.yml b/.github/workflows/check-manifest.yml index e0ebe7c..25903eb 100644 --- a/.github/workflows/check-manifest.yml +++ b/.github/workflows/check-manifest.yml @@ -1,28 +1,26 @@ name: "Check Manifest" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Manifest" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Set category - id: category - run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" + - name: Set category + id: category + run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" - - name: Check manifest - if: steps.category.outputs.category == 'integration' - run: python3 -m scripts.check.manifest + - name: Check manifest + if: steps.category.outputs.category == 'integration' + run: python3 -m scripts.check.manifest diff --git a/.github/workflows/check-owner.yml b/.github/workflows/check-owner.yml index 8b6b2e3..df948d2 100644 --- a/.github/workflows/check-owner.yml +++ b/.github/workflows/check-owner.yml @@ -1,30 +1,28 @@ name: "Check Owner" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Owner" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Install dependencies - run: | - python3 -m pip install setuptools wheel - python3 -m pip install aiogithubapi + - name: Install dependencies + run: | + python3 -m pip install setuptools wheel + python3 -m pip install aiogithubapi - - name: Check owner - run: python3 -m scripts.check.owner - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Check owner + run: python3 -m scripts.check.owner + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/check-repository.yml b/.github/workflows/check-repository.yml index 294fd37..000da3d 100644 --- a/.github/workflows/check-repository.yml +++ b/.github/workflows/check-repository.yml @@ -1,30 +1,28 @@ name: "Check Repository" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Repository" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Install dependencies - run: | - python3 -m pip install setuptools wheel - python3 -m pip install aiogithubapi + - name: Install dependencies + run: | + python3 -m pip install setuptools wheel + python3 -m pip install aiogithubapi - - name: Check repository - run: python3 -m scripts.check.repository - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Check repository + run: python3 -m scripts.check.repository + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/check-wheels.yml b/.github/workflows/check-wheels.yml index 07186cf..be9203f 100644 --- a/.github/workflows/check-wheels.yml +++ b/.github/workflows/check-wheels.yml @@ -1,36 +1,34 @@ name: "Check Wheels" -on: - pull_request: - types: unlabeled +on: [pull_request] jobs: - check: - if: github.event.label.name == 'Not finished' - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 + check: + runs-on: ubuntu-latest + name: "Check Wheels" + steps: + - name: Check out repository + uses: actions/checkout@v2 - - name: Clone origin - run: git clone --depth 1 https://github.com/hacs/default /tmp/default + - name: Clone origin + run: git clone --depth 1 https://github.com/hacs/default /tmp/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/addition + - name: Clone new addition + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/addition - - name: Set category - id: category - run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" + - name: Set category + id: category + run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" - - name: Install dependencies - if: steps.category.outputs.category == 'integration' - run: | - python3 -m pip install setuptools wheel - python3 -m pip install aiogithubapi + - name: Install dependencies + if: steps.category.outputs.category == 'integration' + run: | + python3 -m pip install setuptools wheel + python3 -m pip install aiogithubapi - - name: Check home-assistant/wheels-custom-integrations - if: steps.category.outputs.category == 'integration' - run: python3 -m scripts.check.wheels - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Check home-assistant/wheels-custom-integrations + if: steps.category.outputs.category == 'integration' + run: python3 -m scripts.check.wheels + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/lint-jq.yml b/.github/workflows/lint-jq.yml index 20c67e9..1a5aae7 100644 --- a/.github/workflows/lint-jq.yml +++ b/.github/workflows/lint-jq.yml @@ -20,14 +20,17 @@ jobs: - name: Validate integration run: jq --raw-output "." "integration" + - name: Validate netdaemon + run: jq --raw-output "." "netdaemon" + - name: Validate plugin run: jq --raw-output "." "plugin" - name: Validate python_script run: jq --raw-output "." "python_script" - - name: Validate theme - run: jq --raw-output "." "theme" - - name: Validate removed - run: jq --raw-output "." "removed" \ No newline at end of file + run: jq --raw-output "." "removed" + + - name: Validate theme + run: jq --raw-output "." "theme" \ No newline at end of file