Ground work: prison controller and single prisoner details endpoint (… #2760
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |