Update GitHub action to run if it changes #4
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: "KLC Compliance Check" | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
# and if relevant files have changed, including this GitHub action files | |
push: | |
branches: [ "main" ] | |
paths: | |
- "SimPanel.pretty/*.kicad_mod" | |
- ".github/workflows/kicad-klc-check.yml" | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- "SimPanel.pretty/*.kicad_mod" | |
- ".github/workflows/kicad-klc-check.yml" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
KLC_ComplianceCheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.10.11' | |
- name: Run KiCad KLC Footprint Check | |
run: python ./library-utils/klc-check/check_footprint.py ./SimPanel.pretty/* |