refactor: Epeiste class and AmeliorationBase class Decorator and CoR #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PlantUML to Image | |
on: | |
push: | |
branches: | |
- master | |
permissions: write-all | |
jobs: | |
generate-images: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: "11" | |
distribution: "adopt" | |
- name: Install PlantUML | |
run: sudo apt-get install plantuml -y | |
- name: Install Graphviz | |
run: sudo apt-get install graphviz -y | |
- name: Convert PlantUML to PNG | |
run: | | |
find UML -name "*.plantuml" | while read file; do | |
echo "Processing $file" | |
plantuml -tpng "$file"; | |
done | |
- name: Commit PNG files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
if [[ `git status --porcelain` ]]; then | |
git add * | |
git commit -m "bot(ci): add generated PNG files from .plantuml diagrams" | |
git push | |
else | |
echo "No changes to commit" | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |