Created
October 1, 2019 13:20
-
-
Save kasperg/8376c04a2844ce720c63a6d2492960f3 to your computer and use it in GitHub Desktop.
GitHub Actions workflow to render and commit updated PlantUML diagrams
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
on: | |
push: | |
paths: | |
- 'docs/*.puml' | |
name: PlantUML | |
jobs: | |
generate_images: | |
name: Update images | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Generate images from diagrams | |
uses: docker://miy4/plantuml | |
with: | |
args: "./docs/*.puml -tsvg" | |
- name: Commit updated diagram images | |
uses: EndBug/add-and-commit@v2.1.0 | |
with: | |
message: Update PlantUML diagram images | |
path: "./docs" | |
pattern: "*.svg" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment