From c0bcb9b12930555a73b73d51208ed072150128c7 Mon Sep 17 00:00:00 2001 From: "Sams, Roland" Date: Wed, 27 Mar 2024 14:02:45 +0100 Subject: [PATCH] test --- .github/workflows/build-deploy-mkj-master.yml | 9 +++++++++ .github/workflows/build-deploy-mkj-test.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-deploy-mkj-master.yml b/.github/workflows/build-deploy-mkj-master.yml index 1c26434..ccb4011 100644 --- a/.github/workflows/build-deploy-mkj-master.yml +++ b/.github/workflows/build-deploy-mkj-master.yml @@ -18,6 +18,15 @@ jobs: node-version: 20 cache: "npm" + - name: Update environment file + run: | + sed -i 's+'production'+${{secrets.TEST_PRODUCTION}}+g' src/environments/environment.prod.ts + sed -i "s+'publictest'+${{secrets.TEST_PUBLICTEST}}+g" src/environments/environment.prod.ts + sed -i "s+'appTitle'+${{secrets.TEST_APPTITLE}}+g" src/environments/environment.prod.ts + sed -i "s+'apiUrl'+${{secrets.TEST_APIURL}}+g" src/environments/environment.prod.ts + sed -i "s+'wsHost'+${{secrets.TEST_WSHOST}}+g" src/environments/environment.prod.ts + sed -i "s+'wsAppKey'+${{secrets.TEST_WSAPPKEY}}+g" src/environments/environment.prod.ts + - name: Install dependencies run: npm ci diff --git a/.github/workflows/build-deploy-mkj-test.yml b/.github/workflows/build-deploy-mkj-test.yml index 3abacab..ce0c457 100644 --- a/.github/workflows/build-deploy-mkj-test.yml +++ b/.github/workflows/build-deploy-mkj-test.yml @@ -20,7 +20,7 @@ jobs: - name: Update environment file run: | - sed -i 's+'production'+${{secrets.TEST_PRODUCTION}}+g' src/environments/environment.prod.ts + sed -i "s+'production'+${{secrets.TEST_PRODUCTION}}+g" src/environments/environment.prod.ts sed -i "s+'publictest'+${{secrets.TEST_PUBLICTEST}}+g" src/environments/environment.prod.ts sed -i "s+'appTitle'+${{secrets.TEST_APPTITLE}}+g" src/environments/environment.prod.ts sed -i "s+'apiUrl'+${{secrets.TEST_APIURL}}+g" src/environments/environment.prod.ts