diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index b2695a6d5b1..305a0e9e8ca 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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/checkout@v4.1.0 - name: Set up Python + if: ${{ github.event_name == 'push' }} uses: actions/setup-python@v4.7.1 id: python with: @@ -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