Skip to content

feat: Server SDK Diagrams + Generator Action #14

feat: Server SDK Diagrams + Generator Action

feat: Server SDK Diagrams + Generator Action #14

Workflow file for this run

name: Generate PlantUML Diagrams
on:
pull_request:
paths:
- 'diagrams/**.puml'
permissions:
contents: write
jobs:
generate_plantuml:
runs-on: ubuntu-latest
name: Generate
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- 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 "diagrams/**.puml" -o "../static/diagrams"
- name: Push Local Changes
uses: stefanzweifel/[email protected]
with:
commit_message: "Generate SVG files for PlantUML diagrams"