Files
Joakim Sørensen 9e8788c060 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
2020-05-28 16:53:45 +02:00

31 lines
814 B
YAML

name: Lint
on: [push, pull_request]
jobs:
jq:
name: JQ
runs-on: ubuntu-latest
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 }}
if: steps.category.outputs.category != 'Bad data []'
run:
jq --raw-output "." "${{steps.category.outputs.category}}"
sorted:
name: Sorted
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Check lists
run: python3 scripts/is_sorted.py