Skip to content

feat: Server SDK Diagrams + Generator Action #4

feat: Server SDK Diagrams + Generator Action

feat: Server SDK Diagrams + Generator Action #4

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
- 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"
- name: Push Local Changes
uses: stefanzweifel/git-auto-commit-action@v4.1.2
with:
commit_message: "Generate SVG files for PlantUML diagrams"
branch: ${{ github.head_ref }}