Skip to content

Instantly share code, notes, and snippets.

@kasperg
Created October 1, 2019 13:20
Show Gist options
  • Save kasperg/8376c04a2844ce720c63a6d2492960f3 to your computer and use it in GitHub Desktop.
Save kasperg/8376c04a2844ce720c63a6d2492960f3 to your computer and use it in GitHub Desktop.
GitHub Actions workflow to render and commit updated PlantUML diagrams
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