mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-20 09:51:29 +10:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user