Add preflight (#490)

* Add preflight

* fix syntax

* move check

* get event

* print

* return event

* use path

* tt

* move to helper

* add issue_comment

* remove should run

* check owner

* add more information to the logs

* test

* add finished

* move keys

* Update errors

* remove repo

* fix JQ run

* filter
This commit is contained in:
Joakim Sørensen
2020-05-28 16:53:45 +02:00
committed by GitHub
parent 51639d6624
commit 9e8788c060
19 changed files with 135 additions and 89 deletions
+11 -6
View File
@@ -4,20 +4,25 @@ on: [push, pull_request]
jobs:
jq:
name: JQ
if: ${{ always() }}
runs-on: ubuntu-latest
strategy:
matrix:
checks: [appdaemon, blacklist, critical, integration, netdaemon, plugin, python_script, removed, theme]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Clone origin
run: git clone --depth 1 https://github.com/hacs/default /tmp/repositories/default
- name: Set category
id: category
run: echo "::set-output name=category::$(python3 -m scripts.changed.category)"
- name: Validate ${{ matrix.checks }}
run: jq --raw-output "." "${{ matrix.checks }}"
if: steps.category.outputs.category != 'Bad data []'
run:
jq --raw-output "." "${{steps.category.outputs.category}}"
sorted:
name: Sorted
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Check out repository