Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [MCIL-115] Generate images with PlantUML JAR #77

Open
wants to merge 5 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/plantUML.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Generate PlantUML Diagrams

on:
# pull_request:
# types:
# - closed
# branches:
# - main
# - v2
push:
branches: [ MCIL-115-automate-diagrams-creation-with-plantuml ]

jobs:
generate_diagrams:
# if: github.event.pull_request.merged == true

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'

- name: Install Graphviz
run: |
sudo apt-get update && sudo apt-get install -y graphviz wget

- name: Download PlantUML
run: |
wget https://sourceforge.net/projects/plantuml/files/plantuml.jar/download -O plantuml.jar

- name: Generate Diagrams
run: |
for file in $(find ./src/site -type f -name "MAIN_*.puml"); do
java -jar plantuml.jar "$file" -tsvg
done

- name: Commit and push changes
run: |
git config user.name "GitHub Workflow"
git config user.email "<>"
for file in $(find ./src/site -type f -name "*.svg"); do
git add "$file"
done
git commit -m "PlantUML images updated"
git push origin ${{ github.ref_name }}
1 change: 1 addition & 0 deletions src/site/puml/atm/MAIN__atm__request_tokens.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/site/puml/atm/MAIN__atm__request_tokens__SIMPLE.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/site/puml/common/MAIN__retrieve_key_to_sign_tokens.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/site/puml/introspect/MAIN__other__introspect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/site/puml/other/MAIN__other__request_tokens.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/site/puml/pos/MAIN__pos_activation__refresh_tokens.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading