Skip to content

Commit f2caaaf

Browse files
authored
Add merge and archive options (#17)
* Add merge and archive options * Update docs * Add tests * Change versioning to major
1 parent b2a0f85 commit f2caaaf

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ jobs:
1818
key: ${{ secrets.STZR_API_KEY }}
1919
secret: ${{ secrets.STZR_API_SECRET }}
2020
workspace: ./tests/workspace.dsl
21+
url: https://api.structurizr.com
22+
merge: false
23+
archive: false

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v2
3333

3434
- name: Run structurizr-cli action
35-
uses: aidmax/structurizr-cli-action@v0.2.1
35+
uses: aidmax/structurizr-cli-action@v1
3636
id: test
3737
with:
3838
id: # The workspace ID (required)
@@ -43,6 +43,8 @@ jobs:
4343
# optional parameters
4444
url: # The Structurizr API URL (optional; defaults to https://api.structurizr.com)
4545
passphrase: # The passphrase to use (optional; only required if client-side encryption enabled on the workspace)
46+
merge: # Whether to merge layout information from the remote workspace (optional: defaults to true)
47+
archive: # Whether to store the previous version of the remote workspace (optional; default to true)
4648
```
4749
4850
## Details

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ inputs:
3030
passphrase:
3131
description: 'The passphrase to use (optional; only required if client-side encryption enabled on the workspace)'
3232
required: false
33+
merge:
34+
description: 'Whether to merge layout information from the remote workspace (optional: defaults to true)'
35+
required: false
36+
archive:
37+
description: 'Whether to store the previous version of the remote workspace (optional; default to true)'
38+
required: false
3339
runs:
3440
using: 'docker'
3541
image: 'docker://ghcr.io/aidmax/structurizr-cli-docker:latest'
@@ -47,3 +53,7 @@ runs:
4753
- ${{ inputs.url }}
4854
- '-passphrase'
4955
- ${{ inputs.passphrase }}
56+
- '-merge'
57+
- ${{ inputs.merge }}
58+
- '-archive'
59+
- ${{ inputs.archive }}

0 commit comments

Comments
 (0)