Skip to content

Commit 356d265

Browse files
authored
ci: 👷 add reusable workflow to generate SVG from puml files (#180)
## Description It is very annoying to have to update the svg files. So this adds a reusable workflow to solve that problem. Closes #179 ## Reviewer Focus <!-- Please delete as appropriate: --> This PR needs a quick review. Focus on the Git message used when this runs.
1 parent f446317 commit 356d265

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/puml-to-svg.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Generate SVG from PlantUML
2+
3+
on:
4+
workflow_call:
5+
secrets:
6+
github-token:
7+
required: true
8+
9+
jobs:
10+
generate-plantuml:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 1
17+
18+
- name: plantuml
19+
id: plantuml
20+
uses: grassedge/generate-plantuml-action@v1.5
21+
with:
22+
message: "chore: :bento: (re-)generate `.svg` from `.puml` files"
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.github-token }}

0 commit comments

Comments
 (0)