Skip to content

feat: tartiflette

feat: tartiflette #12

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 UML/**/*.png
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 }}