Merge branch 'main' of github.com:jknoxdev/lima-node #8
This file contains hidden or 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: 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" |