From 156b04cf7dd9b2fd6563db6477a3dff8533e123b Mon Sep 17 00:00:00 2001 From: Milykh_MV Date: Mon, 15 Jan 2024 16:06:01 +0300 Subject: [PATCH] init --- .github/workflows/test.yml | 3 ++- action.yml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4ae2a1..9c001c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,11 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Run structurizr-cli action + - name: Run structurizr-cli action push command uses: ./ id: test with: + command: push id: ${{ secrets.STZR_ID }} key: ${{ secrets.STZR_API_KEY }} secret: ${{ secrets.STZR_API_SECRET }} diff --git a/action.yml b/action.yml index 23ebc0d..7b9eb3f 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,9 @@ branding: icon: 'copy' color: 'blue' inputs: + command: + description: 'The command (required)' + required: true id: description: 'The workspace ID (required)' required: true @@ -40,7 +43,7 @@ runs: using: 'docker' image: 'docker://ghcr.io/aidmax/structurizr-cli-docker:latest' args: - - 'push' + - ${{ inputs.command }} - '-id' - ${{ inputs.id }} - '-key'