added automation, updated tables and read.me
This commit is contained in:
37
update_component_index.yml
Normal file
37
update_component_index.yml
Normal 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
|
||||
Reference in New Issue
Block a user