Skip to content

Update README.md

Update README.md #47

Workflow file for this run

name: Generate Diagrams
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
generate_plantuml:
runs-on: ubuntu-latest
name: plantuml
steps:
- name: Install Dependencies
run: |
sudo apt-get install graphviz
sudo mkdir -p /opt/plantuml
cd /opt/plantuml
UML=https://github.com/tide-foundation/devopsDL/raw/main/download/plantuml-1.2022.13.jar
sudo curl -JLO ${UML}
UML=https://github.com/tide-foundation/devopsDL/raw/main/download/batik-all-1.7.jar
sudo curl -JLO ${UML}
UML=https://github.com/tide-foundation/devopsDL/raw/main/download/jlatexmath-minimal-1.0.3.jar
sudo curl -JLO ${UML}
UML=https://github.com/tide-foundation/devopsDL/raw/main/download/jlm_cyrillic.jar
sudo curl -JLO ${UML}
UML=https://github.com/tide-foundation/devopsDL/raw/main/download/jlm_greek.jar
sudo curl -JLO ${UML}
- name: Checkout Repository
uses: actions/checkout@v2
- name: Process Diagrams svg
run: java -jar /opt/plantuml/plantuml-1.2022.13.jar -v -tsvg -r -o "./svg" "./**.puml"
# - name: Process Diagrams png
# run: java -jar /opt/plantuml/plantuml-1.2022.13.jar -v -tpng -r -o "./png" "src/tide/current/**.puml"
- name: Display Diagrams
run: pwd && ls diagrams/** | grep \.svg$
- name: Commit Diagrams
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m ":rocket: Adding Generated PlantUML Diagrams" || exit 0
- name: Push Diagrams
uses: ad-m/github-push-action@master
with:
GITHUB_TOKEN: ${{ github.token }}