Skip to content

Merge pull request #11357 from DefectDojo/release/2.41.0 #11

Merge pull request #11357 from DefectDojo/release/2.41.0

Merge pull request #11357 from DefectDojo/release/2.41.0 #11

Workflow file for this run

name: Generate PlantUML Diagrams
on:
push:
paths:
- '**.puml'
branches:
- master
- dev
jobs:
ci:
runs-on: ubuntu-latest
env:
UML_FILES: ".puml"
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Get changed UML files
id: getfile
run: |
echo "::set-output name=files::$(git diff-tree -r --no-commit-id --name-only ${{ github.sha }} | grep ${{ env.UML_FILES }} | xargs)"
- name: UML files considered echo output
run: |
echo ${{ steps.getfile.outputs.files }}
- name: Generate SVG Diagrams
uses: cloudbees/plantuml-github-action@master
with:
args: -v -tsvg ${{ steps.getfile.outputs.files }}
- name: Generate PNG Diagrams
uses: cloudbees/plantuml-github-action@master
with:
args: -v -tpng ${{ steps.getfile.outputs.files }}
- name: Push Local Changes
uses: stefanzweifel/[email protected]
with:
commit_user_name: "PlantUML_bot"
commit_user_email: "[email protected]"
commit_author: "PlantUML Bot <[email protected]>"
commit_message: "Generate SVG and PNG images for PlantUML diagrams"
branch: ${{ github.head_ref }}