Skip to content

Commit

Permalink
move check
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Oct 14, 2023
1 parent d31c31f commit 6b5b4db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ jobs:
validata-hacs-data:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
name: Validate HACS data generation
steps:
- name: Checkout the repository
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]

- name: Set up Python
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]
id: python
with:
Expand All @@ -70,16 +71,19 @@ jobs:
requirements_generate_data.txt
- name: Install dependencies
if: ${{ github.event_name == 'push' }}
run: |
scripts/install/frontend
scripts/install/pip_packages --requirement requirements_generate_data.txt
- name: Generate data
if: ${{ github.event_name == 'push' }}
run: python3 -m scripts.data.generate_category_data integration hacs/integration
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Validate output with JQ
if: ${{ github.event_name == 'push' }}
run: |
jq -c . outputdata/integration/data.json
jq -c . outputdata/integration/repositories.json
Expand Down

0 comments on commit 6b5b4db

Please sign in to comment.