PlantUML Github Action - kept up to date with PlantUML releases.
This repository updates itself and produces a new version/tag on every PlantUML release.
Action generating all *.puml
diagrams as svg in diagrams
folder on push:
name: Generate PlantUML Diagrams
on:
push:
jobs:
plantuml:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Generate SVG Diagrams
uses: holowinski/plantuml-github-action@main
with:
args: -v -tsvg diagrams/*.puml
Action updating diagrams modified in last commit and pushing the change
name: Generate PlantUML Diagrams
on:
push:
paths:
- "**.puml"
jobs:
plantuml:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Get changed UML files
id: getfile
run: |
echo "::set-output name=files::$(git diff --name-only HEAD^ HEAD | grep .puml | xargs)"
- name: Generate SVG Diagrams
uses: holowinski/plantuml-github-action@main
with:
args: -v -tsvg ${{steps.getfile.outputs.files}}
- name: Push Local Changes
uses: stefanzweifel/[email protected]
with:
commit_message: "Generate SVG files for PlantUML diagrams"
branch: ${{ github.head_ref }}
There's a special issue which regenerates an example diagram on every comment - check it out.