Fix some links #3
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: Generate PlantUML Diagrams | |
on: | |
push: | |
paths: | |
- '**.puml' | |
branches: | |
- master | |
- dev | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
env: | |
UML_FILES: ".puml" | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Get changed UML files | |
id: getfile | |
run: | | |
echo "::set-output name=files::$(git diff-tree -r --no-commit-id --name-only ${{ github.sha }} | grep ${{ env.UML_FILES }} | xargs)" | |
- name: UML files considered echo output | |
run: | | |
echo ${{ steps.getfile.outputs.files }} | |
- name: Generate SVG Diagrams | |
uses: cloudbees/plantuml-github-action@master | |
with: | |
args: -v -tsvg ${{ steps.getfile.outputs.files }} | |
- name: Generate PNG Diagrams | |
uses: cloudbees/plantuml-github-action@master | |
with: | |
args: -v -tpng ${{ steps.getfile.outputs.files }} | |
- name: Push Local Changes | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_user_name: "PlantUML_bot" | |
commit_user_email: "[email protected]" | |
commit_author: "PlantUML Bot <[email protected]>" | |
commit_message: "Generate SVG and PNG images for PlantUML diagrams" | |
branch: ${{ github.head_ref }} |