fix: path loading #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
find: | |
name: Find add-ons | |
runs-on: ubuntu-latest | |
if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}" | |
outputs: | |
addons: ${{ steps.addons.outputs.addons_list }} | |
steps: | |
- name: ⤵️ Check out code from GitHub | |
uses: actions/[email protected] | |
- name: 🔍 Find add-on directories | |
id: addons | |
uses: home-assistant/actions/helpers/find-addons@master | |
lint: | |
name: Lint add-on ${{ matrix.path }} | |
runs-on: ubuntu-latest | |
if: "${{ !startsWith(github.event.head_commit.message, 'chore(release): ') }}" | |
needs: find | |
strategy: | |
matrix: | |
path: ${{ fromJson(needs.find.outputs.addons) }} | |
steps: | |
- name: ⤵️ Check out code from GitHub | |
uses: actions/[email protected] | |
- name: 🚀 Run Home Assistant Add-on Lint | |
uses: frenck/[email protected] | |
with: | |
path: "./${{ matrix.path }}" |