mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-04 02:58:10 +10:00
* 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
31 lines
814 B
YAML
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 |