Première version de Pair evaluation #143
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: Convert PlantUML to PNG | |
on: push | |
jobs: | |
plantuml_jar: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v1 | |
- id: files | |
uses: jitterbit/get-changed-files@v1 | |
- name: Call plantuml .jar on committed files | |
run: for filename in ${{ steps.files.outputs.all }}; do [[ $filename =~ .*\.du ]] && (echo Convert $filename:\ java -jar plantuml.jar $filename && java -jar .github/workflows/plantuml.jar $filename) || true; done; | |
- name: Push Local Changes | |
uses: stefanzweifel/git-auto-commit-action@v4.1.2 | |
with: | |
commit_user_name: "aadedjou" | |
commit_user_email: "aadedjoumon@gmail.com" | |
commit_message: "Generate PNG images of PlantUML diagrams" | |
branch: ${{ github.head_ref }} | |
- name: Done ! | |
run: echo Successfully generated .png files ! |