-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructurizr-diagrams-update.yml
More file actions
23 lines (20 loc) · 1.06 KB
/
Copy pathstructurizr-diagrams-update.yml
File metadata and controls
23 lines (20 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Update Structurizr Diagrams
on:
pull_request:
paths:
- 'docs/workspace.dsl' # This setting will have the action trigger only if certain file changes. Set the location of your DSL.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
update-diagrams:
runs-on: ubuntu-latest
container: ghcr.io/sebastienfi/structurizr-cli-with-bonus:latest
permissions:
contents: write # Allow to work with the contents of the repository, including git push.
steps:
- uses: sebastienfi/structurizr-gen-images@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }} # This token will be used by the action to perform git pull, git push, pr read, pr comment, pr comment edit, pr comment reaction.
workspace-path: 'docs/workspace.dsl' # This setting will have the action generate images from this DSL. Set the location of your DSL.
output-path: 'docs/diagrams/' # The output folder for generated images.