Merge pull request #1259 from dbfixtures/issue-890 #11
This file contains hidden or 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: Render Mermaid Diagrams | |
| on: | |
| push: | |
| paths: | |
| - 'docs/*.mmd' # Trigger only when mermaid files change | |
| jobs: | |
| render: | |
| runs-on: ubuntu-latest | |
| # Grant the action permission to write to the repository | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install Mermaid CLI | |
| run: npm install -g @mermaid-js/mermaid-cli | |
| - name: Render Diagram | |
| run: mmdc -p docs/puppeteer-config.json -i docs/architecture.mmd -o docs/images/architecture.svg -t neutral | |
| - name: Commit and Push | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: "docs: update rendered mermaid diagram [skip ci]" | |
| file_pattern: 'docs/images/*.svg' |