Skip to content

Merge branch 'main' of github.com:jknoxdev/lima-node #8

Merge branch 'main' of github.com:jknoxdev/lima-node

Merge branch 'main' of github.com:jknoxdev/lima-node #8

name: Render PlantUML Diagrams
on:
push:
paths:
- '**.puml'
workflow_dispatch:
jobs:
render:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install PlantUML
run: |
sudo apt-get update -q
sudo apt-get install -y plantuml
- name: Render SVG and PNG
run: |
find . -name "*.puml" | while read f; do
echo "Rendering $f"
plantuml -tsvg "$f"
plantuml -tpng "$f"
done
- name: Commit rendered diagrams
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "ci: auto-render PlantUML diagrams [skip ci]"
file_pattern: "**/*.svg **/*.png"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"