added automation, updated tables and read.me

This commit is contained in:
2026-03-03 15:26:13 -05:00
parent b9eb4abfdd
commit 83c5fa5e40
5 changed files with 592 additions and 152 deletions

View File

@@ -0,0 +1,37 @@
name: Update Component Index
on:
push:
paths:
- 'symbols/**.kicad_sym'
workflow_dispatch:
jobs:
update-index:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Parse symbol libraries and update README
run: python3 .github/scripts/update_component_index.py
- name: Commit updated README if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
if git diff --staged --quiet; then
echo "No changes to component index."
else
git commit -m "docs: auto-update component index [skip ci]"
git push
fi