From 3a1e66f77d9660fac659deb923d40030b43d2568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= <40836345+signekb@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:22:29 +0200 Subject: [PATCH] ci: :construction_worker: add workflow to autogenerate images from pumls (#145) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description So we don't have to do it manually (ever again 🌟 ) --------- Co-authored-by: Luke W. Johnston --- .github/workflows/puml-to-svg.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/puml-to-svg.yaml diff --git a/.github/workflows/puml-to-svg.yaml b/.github/workflows/puml-to-svg.yaml new file mode 100644 index 0000000..93fb565 --- /dev/null +++ b/.github/workflows/puml-to-svg.yaml @@ -0,0 +1,23 @@ +name: Generate SVG from PlantUML + +on: + pull_request: + paths: + - '**.puml' + +jobs: + generate-plantuml: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: plantuml + id: plantuml + uses: grassedge/generate-plantuml-action@v1.5 + with: + message: "chore: :bento: (re-)generate `.svg` from `.puml` files" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}