-
Notifications
You must be signed in to change notification settings - Fork 107
36 lines (35 loc) · 1.13 KB
/
uml_action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Update UML diagrams
on:
pull_request_review:
types: [submitted]
branches: development
workflow_dispatch:
jobs:
diagrams:
if: github.event.review.state == 'approved'
name: Update UML diagrams
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: set up environment
run: |
pip install -U pip
pip install -r requirements.txt
pip install icepyx pylint
sudo apt-get install graphviz
- name: run pyreverse
run: |
pyreverse ./icepyx/core -p user_uml -o svg
pyreverse ./icepyx/quest -p quest_user_uml -o svg
pyreverse ./icepyx/core ./icepyx/quest -f ALL -p dev_uml -o svg
rm ./packages_dev_uml.svg
mv ./*.svg ./doc/source/user_guide/documentation/
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Action
message: "GitHub action UML generation auto-update"
add: "./doc/source/user_guide/documentation/*"