From 297964b7678fc97453229ee52227b6c4f05cdfe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Krzy=C5=9Bk=C3=B3w?= Date: Tue, 24 Sep 2024 05:46:40 +0200 Subject: [PATCH] ci: add input to reusable deploy --- .github/workflows/reusable_deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/reusable_deploy.yml b/.github/workflows/reusable_deploy.yml index 64c0c4a..459df92 100644 --- a/.github/workflows/reusable_deploy.yml +++ b/.github/workflows/reusable_deploy.yml @@ -2,6 +2,9 @@ name: Reusable Nype Deploy CI on: workflow_call: + inputs: + INPUT_ENV: + type: string secrets: SSH_PRIVATE_KEY: required: true @@ -26,6 +29,12 @@ jobs: deploy: runs-on: ubuntu-latest steps: + - run: | + echo ' + ${{ inputs.INPUT_ENV }} + ' >> $GITHUB_ENV + echo $GITHUB_ENV + cat $GITHUB_ENV - uses: actions/checkout@v4 - name: Configure Git Credentials run: |