From 7229b8a7f1afae74e50e4eb92997ecf4c63c31fe Mon Sep 17 00:00:00 2001 From: Artyom <33422161+WooDeNDark@users.noreply.github.com> Date: Tue, 17 Jan 2023 15:18:00 +0300 Subject: [PATCH] Add env --- .github/workflows/ui-workflow.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ui-workflow.yml b/.github/workflows/ui-workflow.yml index f7d71ca..362862e 100644 --- a/.github/workflows/ui-workflow.yml +++ b/.github/workflows/ui-workflow.yml @@ -7,6 +7,11 @@ on: description: "Docker repository address" required: true type: string + GIT_REVISION_ENV_NAME: + description: "Env name for setting git revision" + required: false + type: string + default: 'REACT_GIT_REVISION' IS_ECR_PUSH_ENABLED: description: "Disable pushing to ECR. Default is true." required: true @@ -45,7 +50,7 @@ jobs: scope: '@arbinahq' - name: Add envs - run: echo VITE_GIT_COMMIT=${{ secrets.SECRET_IMAGE_TAG }} >> .env + run: echo ${{ inputs.GIT_REVISION_ENV_NAME }}=${{ secrets.SECRET_IMAGE_TAG }} >> .env - name: NPM install packages run: (rm .npmrc || true) && npm install