New trigger (#486)

* New trigger

* Add job name
This commit is contained in:
Joakim Sørensen
2020-05-27 16:57:49 +02:00
committed by GitHub
parent 671ba36951
commit 1447c2a2fc
13 changed files with 256 additions and 277 deletions
+21 -23
View File
@@ -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 }}
- name: Check archived
run: python3 -m scripts.check.archived
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+26 -28
View File
@@ -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 }}
- name: Check home-assistant/brands
if: steps.category.outputs.category == 'integration'
run: python3 -m scripts.check.brands
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+21 -23
View File
@@ -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 }}
- name: Check fork
run: python3 -m scripts.check.fork
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+15 -17
View File
@@ -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
+22 -24
View File
@@ -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 }}"
- 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 }}"
+27 -29
View File
@@ -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"
- 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"
+15 -17
View File
@@ -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
+15 -17
View File
@@ -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
+19 -21
View File
@@ -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
+21 -23
View File
@@ -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 }}
- name: Check owner
run: python3 -m scripts.check.owner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+21 -23
View File
@@ -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 }}
- name: Check repository
run: python3 -m scripts.check.repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+26 -28
View File
@@ -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 }}
- 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 }}
+7 -4
View File
@@ -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"
run: jq --raw-output "." "removed"
- name: Validate theme
run: jq --raw-output "." "theme"