From 5bce1203fdf349fb673f62d3af3e242a946f41c3 Mon Sep 17 00:00:00 2001 From: Milykh_MV Date: Sun, 25 Feb 2024 07:03:12 +0300 Subject: [PATCH] Remove static params except one --- .github/workflows/test.yml | 1 + action.yml | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10b3029..614b812 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/action.yml b/action.yml index 765fca7..4912ad2 100644 --- a/action.yml +++ b/action.yml @@ -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 }}