From 6f8c173919ca833273b7f07923244f7226058de1 Mon Sep 17 00:00:00 2001 From: Saurabh Shrihar Date: Fri, 26 Apr 2024 13:36:03 +0400 Subject: [PATCH] Trigger workflow 15 --- .github/workflows/re_use_workflow.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/re_use_workflow.yml b/.github/workflows/re_use_workflow.yml index 7e4de17..ac734f7 100644 --- a/.github/workflows/re_use_workflow.yml +++ b/.github/workflows/re_use_workflow.yml @@ -22,13 +22,13 @@ jobs: id: set-env-var run: | if [ "${{ inputs.environment }}" == "dev" ]; then - echo "ACCOUNT_NUMBER=secrets.DEV_ACCOUNT_NUMBER" >> $GITHUB_OUTPUT + echo "ACCOUNT_NUMBER=$(echo '${{ secrets.DEV_ACCOUNT_NUMBER }}' | jq -R .)" >> $GITHUB_OUTPUT echo "APP_NAME=${{ inputs.core_app }}-dev" >> $GITHUB_OUTPUT elif [ "${{ inputs.environment }}" == "staging" ]; then - echo "ACCOUNT_NUMBER=secrets.STAGING_ACCOUNT_NUMBER" >> $GITHUB_OUTPUT + echo "ACCOUNT_NUMBER=$(echo '${{ secrets.STAGING_ACCOUNT_NUMBER }}' | jq -R .)" >> $GITHUB_OUTPUT echo "APP_NAME=${{ inputs.core_app }}-staging" >> $GITHUB_OUTPUT elif [ "${{ inputs.environment }}" == "prod" ]; then - echo "ACCOUNT_NUMBER=secrets.PROD_ACCOUNT_NUMBER" >> $GITHUB_OUTPUT + echo "ACCOUNT_NUMBER=$(echo '${{ secrets.PROD_ACCOUNT_NUMBER }}' | jq -R .)" >> $GITHUB_OUTPUT echo "APP_NAME=${{ inputs.core_app }}" >> $GITHUB_OUTPUT fi deploy: @@ -40,5 +40,4 @@ jobs: aws_region: eu-west-1 environment: ${{ inputs.environment }} cluster_name: frontend-${{ inputs.environment }}-ecs-cluster - secrets: - account_number: "${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }}" \ No newline at end of file + account_number: "${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }}" \ No newline at end of file