Skip to content

Commit

Permalink
Add merge and archive options (#17)
Browse files Browse the repository at this point in the history
* Add merge and archive options

* Update docs

* Add tests

* Change versioning to major
  • Loading branch information
aidmax authored May 13, 2023
1 parent b2a0f85 commit f2caaaf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ jobs:
key: ${{ secrets.STZR_API_KEY }}
secret: ${{ secrets.STZR_API_SECRET }}
workspace: ./tests/workspace.dsl
url: https://api.structurizr.com
merge: false
archive: false
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v2

- name: Run structurizr-cli action
uses: aidmax/structurizr-cli-action@v0.2.1
uses: aidmax/structurizr-cli-action@v1
id: test
with:
id: # The workspace ID (required)
Expand All @@ -43,6 +43,8 @@ jobs:
# optional parameters
url: # The Structurizr API URL (optional; defaults to https://api.structurizr.com)
passphrase: # The passphrase to use (optional; only required if client-side encryption enabled on the workspace)
merge: # Whether to merge layout information from the remote workspace (optional: defaults to true)
archive: # Whether to store the previous version of the remote workspace (optional; default to true)
```
## Details
Expand Down
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ inputs:
passphrase:
description: 'The passphrase to use (optional; only required if client-side encryption enabled on the workspace)'
required: false
merge:
description: 'Whether to merge layout information from the remote workspace (optional: defaults to true)'
required: false
archive:
description: 'Whether to store the previous version of the remote workspace (optional; default to true)'
required: false
runs:
using: 'docker'
image: 'docker://ghcr.io/aidmax/structurizr-cli-docker:latest'
Expand All @@ -47,3 +53,7 @@ runs:
- ${{ inputs.url }}
- '-passphrase'
- ${{ inputs.passphrase }}
- '-merge'
- ${{ inputs.merge }}
- '-archive'
- ${{ inputs.archive }}

0 comments on commit f2caaaf

Please sign in to comment.