Skip to content

Commit

Permalink
Remove static params except one
Browse files Browse the repository at this point in the history
  • Loading branch information
aidmax committed Feb 25, 2024
1 parent 35d116a commit 5bce120
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ jobs:
workspace_id: ${{ secrets.STZR_ID }}
key: ${{ secrets.STZR_API_KEY }}
secret: ${{ secrets.STZR_API_SECRET }}
workspace_file_param: -workspace
workspace_file: ./tests/workspace.dsl
21 changes: 11 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@ branding:
inputs:
command:
description: 'Command'
workspace_param:
description: Static parameter
default: -id
workspace_id:
description: 'The workspace ID'
key_param:
description: Static parameter
default: -key
key:
description: 'The workspace API key'
secret_param:
description: Static parameter
default: -secret
secret:
description: 'The workspace API secret'
workspace_file_param:
description: Static parameter
default: -workspace
default: ""
workspace_file:
description: 'The path to the workspace JSON file/DSL file(s)'
runs:
using: 'docker'
image: 'docker://ghcr.io/aidmax/structurizr-cli-docker:latest'
args:
- ${{ inputs.command }}
- '-id'
- ${{ inputs.id }}
- '-key'
- ${{ inputs.key }}
- '-secret'
- ${{ inputs.secret }}
- ${{ inputs.workspace_file_param }}
- ${{ inputs.workspace_file }}

0 comments on commit 5bce120

Please sign in to comment.