Skip to content

Add GitHub Actions workflow for KiCad DRC and export #1

Add GitHub Actions workflow for KiCad DRC and export

Add GitHub Actions workflow for KiCad DRC and export #1

Workflow file for this run

name: KiCad DRC and 3D export

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 7, Col: 5): you may only define one of `paths` and `paths-ignore` for a single event, (Line: 13, Col: 5): you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
paths:
- 'pmod/**'
paths-ignore:
- 'pmod/assets/**'
- 'pmod/template/**'
pull_request:
paths:
- 'pmod/**'
paths-ignore:
- 'pmod/assets/**'
- 'pmod/template/**'
jobs:
kicad_checks:
runs-on: ubuntu-latest
name: KiCad DRC and 3D Export
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Find KiCad projects
id: find_projects
run: |
echo "Searching for KiCad projects in pmod directory..."
PROJECTS=$(find pmod -name "*.kicad_pro" -path "*/KiCad/*" | sed 's|/KiCad/.*\.kicad_pro||' | sort -u)
echo "Found projects: $PROJECTS"
echo "projects=$PROJECTS" >> $GITHUB_OUTPUT