Skip to content

updating prison controller as per pr comments #2759

updating prison controller as per pr comments

updating prison controller as per pr comments #2759

name: Generate PlantUML Diagrams
on:
- workflow_dispatch
- push
jobs:
generate-diagrams:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs/diagrams
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
- uses: actions/checkout@v4
- name: Install Graphviz Dependency
run: |
sudo apt-get install graphviz
- name: Install PlantUML
run: |
wget https://github.com/plantuml/plantuml/releases/download/v1.2023.1/plantuml.jar
java -jar plantuml.jar -version
- name: Generate Diagrams
run: |
java -jar plantuml.jar -svg *.puml
- name: Setup Git Config
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Commit images
run: |
git add *.svg
git commit -m "Exported .PUML PlantUML diagrams to .SVG" || true
git push origin ${BRANCH_NAME}