From e4c1431c311e435e7e27fd13f395a24642f16d9b Mon Sep 17 00:00:00 2001 From: Swati Mukherjee Date: Mon, 12 Aug 2024 12:50:07 +0530 Subject: [PATCH] chore(gi-actions): gettin env variables --- .github/workflows/run-automation-test.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/run-automation-test.yml b/.github/workflows/run-automation-test.yml index 664694204..d225a8607 100644 --- a/.github/workflows/run-automation-test.yml +++ b/.github/workflows/run-automation-test.yml @@ -30,17 +30,21 @@ jobs: # - name: Install dependencies # run: npm install && npm run postinstall # + # - name: Create .env file + # working-directory: ./Hyperswitch-React-Demo-App + # run: | + # touch .env + # echo STATIC_DIR = ./dist >> .env + # echo HYPERSWITCH_PUBLISHABLE_KEY = $Pub_Key >> .env + # echo HYPERSWITCH_SECRET_KEY = $Sec_Key >> .env + # echo PROFILE_ID = $Prof_Id >> .env + # echo HYPERSWITCH_SERVER_URL = "https://sandbox.hyperswitch.io" >> .env + # echo HYPERSWITCH_CLIENT_URL = "http://localhost:9050" >> .env + # cat .env + - name: Create .env file working-directory: ./Hyperswitch-React-Demo-App - run: | - touch .env - echo STATIC_DIR = ./dist >> .env - echo HYPERSWITCH_PUBLISHABLE_KEY = $Pub_Key >> .env - echo HYPERSWITCH_SECRET_KEY = $Sec_Key >> .env - echo PROFILE_ID = $Prof_Id >> .env - echo HYPERSWITCH_SERVER_URL = "https://sandbox.hyperswitch.io" >> .env - echo HYPERSWITCH_CLIENT_URL = "http://localhost:9050" >> .env - cat .env + run: echo "My HYPERSWITCH_PUBLISHABLE_KEY is $Pub_Key" # - name: Build and start local server # run: npm run re:build && npm start &