Skip to content

Commit

Permalink
Added a check for graphviz to the script.
Browse files Browse the repository at this point in the history
  • Loading branch information
bardia-p committed Nov 11, 2023
1 parent 4528ba2 commit f669e4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/diagrams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Generate Diagrams

on:
push:
paths: [ '**.plantuml' ]
branches: [ "main" ]
pull_request:
paths: [ '**.plantuml' ]
branches: [ "main" ]

jobs:
Expand Down
7 changes: 7 additions & 0 deletions generate_diagrams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ input_directory="./diagrams/plantUmlFiles"

plantuml="./tools/plantuml.jar"

if [ $(which dot 2>/dev/null) ]; then
echo "Found GraphViz"
else
echo "Did not find GraphViz"
sudo apt install graphviz
fi

for file in "$input_directory"/*.plantuml; do
if [ -f "$file" ]; then
java -jar "$plantuml" "$file" -o "../"
Expand Down

0 comments on commit f669e4d

Please sign in to comment.