Skip to content

Commit 6efebda

Browse files
authored
Feature/test (#46)
changed back to autocommit, because it is no supposed to run on protected branches auto PR commented auto --------- Co-authored-by: MaxMTheilig <[email protected]>
1 parent 432fa05 commit 6efebda

File tree

8 files changed

+46
-40
lines changed

8 files changed

+46
-40
lines changed

.devcontainer/codfsh-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sushi:
2-
min_version: "3.0.0"
2+
min_version: "3.5.0"
33
hapi:
44
min_version: "3.0.0"
55
parameters:

.github/workflows/RenderAllDiagrams.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
# Clean Folder
4040
- name: Ensure and clean folder
4141
run: |
42-
img_dir=ImplementationGuide/diagrams
42+
img_dir=ImplementationGuide/images/diagrams
4343
mkdir -p $img_dir
44-
rm -rf ImplementationGuide/diagrams/*.svg
44+
rm -rf ImplementationGuide/images/diagrams/*.svg
4545
4646
# Generate the SVGs from PUML
4747
- name: Render PUML to SVG and Move files
@@ -75,22 +75,22 @@ jobs:
7575
find $dir -name "*.svg" -exec mv {} $img_dir \;
7676
done
7777
78-
# add and commit the new generated files
79-
- name: Create Pull Request
80-
uses: peter-evans/create-pull-request@v5
81-
with:
82-
branch: auto/images-generation
83-
commit-message: Generated Images from source Code by GitHub Action
84-
title: Generated Images from GitHub Action
85-
assignees: ${{ github.actor }}
86-
reviewers: ${{ github.actor }}
87-
delete-branch: true
88-
labels: automated pr
78+
## add and commit the new generated files
79+
#- name: Create Pull Request
80+
# uses: peter-evans/create-pull-request@v5
81+
# with:
82+
# branch: auto/images-generation
83+
# commit-message: Generated Images from source Code by GitHub Action
84+
# title: Generated Images from GitHub Action
85+
# assignees: ${{ github.actor }}
86+
# reviewers: ${{ github.actor }}
87+
# delete-branch: true
88+
# labels: automated pr
8989

90-
#- name: Commit and push
91-
# run: |
92-
# git config --local user.email "[email protected]"
93-
# git config --local user.name "GitHub Action"
94-
# git add -A
95-
# git commit -m "Add rendered PlantUML and DrawIO to SVG diagrams" || exit 0
96-
# git push
90+
- name: Commit rendered files
91+
uses: stefanzweifel/git-auto-commit-action@v5
92+
with:
93+
commit_user_name: GitHub Actions Bot
94+
commit_user_email: [email protected]
95+
commit_author: ${{ github.actor }}
96+
commit_message: auto-generated diagrams by GitHub Action after source code change

.github/workflows/RenderPlantUML.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
directories=$(find . -path "*/imgsrc/*/*.puml" -exec dirname {} \; | sort -u)
2828
for dir in $directories; do
2929
# Generate the corresponding out directory path
30-
out_dir=ImplementationGuide/diagrams
30+
out_dir=ImplementationGuide/images/diagrams
3131
mkdir -p $out_dir
3232
3333
# Render SVGs from PUMLs
@@ -38,22 +38,30 @@ jobs:
3838
done
3939

4040

41-
# add and commit the new generated files
42-
- name: Create Pull Request
43-
uses: peter-evans/create-pull-request@v5
44-
with:
45-
branch: auto/images-generation
46-
commit-message: Generated Images from source Code by GitHub Action
47-
title: Generated Images from GitHub Action
48-
assignees: ${{ github.actor }}
49-
reviewers: ${{ github.actor }}
50-
delete-branch: true
51-
labels: automated pr
41+
# # add and commit the new generated files
42+
#- name: Create Pull Request
43+
# uses: peter-evans/create-pull-request@v5
44+
# with:
45+
# branch: auto/images-generation
46+
# commit-message: Generated Images from source Code by GitHub Action
47+
# title: Generated Images from GitHub Action
48+
# assignees: ${{ github.actor }}
49+
# reviewers: ${{ github.actor }}
50+
# delete-branch: true
51+
# labels: automated pr
5252

5353
#- name: Commit and push
5454
# run: |
5555
# git config --local user.email "[email protected]"
5656
# git config --local user.name "GitHub Action"
5757
# git add -A
5858
# git commit -m "Add rendered PlantUML to SVG diagrams" || exit 0
59-
# git push
59+
# git push
60+
61+
- name: Commit rendered files
62+
uses: stefanzweifel/git-auto-commit-action@v5
63+
with:
64+
commit_user_name: GitHub Actions Bot
65+
commit_user_email: [email protected]
66+
commit_author: ${{ github.actor }}
67+
commit_message: auto-generated diagrams by GitHub Action after source code change
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
```plantuml
21
@startuml
32
actor client
43
node app
54
database db
65

76
db -> app
87
app -> client
9-
@enduml
10-
```
8+
client -> db
9+
@enduml
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
```plantuml
21
@startuml nameInSource_Example
32
actor client
43
node app
54
database db
65

76
db -> app
87
app -> client
9-
@enduml
10-
```
8+
@enduml

0 commit comments

Comments
 (0)