From 317063066dae131f9db5d0c518fe7428abdf0d70 Mon Sep 17 00:00:00 2001 From: Hafiz Adewuyi Date: Wed, 7 Aug 2024 15:18:21 +0300 Subject: [PATCH] Try different approach for output. (#83) --- .github/workflows/api-deploy-staging.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/api-deploy-staging.yml b/.github/workflows/api-deploy-staging.yml index efeff76..e75f69e 100644 --- a/.github/workflows/api-deploy-staging.yml +++ b/.github/workflows/api-deploy-staging.yml @@ -10,14 +10,11 @@ jobs: runs-on: ubuntu-latest environment: staging outputs: - api_service_name: ${{ steps.set-vars.outputs.api_service_name }} - api_service_path: ${{ steps.set-vars.outputs.api_service_path }} + api_service_name: ${{ vars.API_SERVICE_NAME }} + api_service_path: ${{ vars.API_SERVICE_PATH }} steps: - - name: Set Environment Variables - id: set-vars - run: | - echo "api_service_name=${{ vars.API_SERVICE_NAME }}" >> $GITHUB_OUTPUT - echo "api_service_path=${{ vars.API_SERVICE_PATH }}" >> $GITHUB_OUTPUT + - run: | + echo "Exposing ENV vars to reusable workflows." deploy: needs: fetch-vars