Skip to content

Commit 5860c29

Browse files
committed
Added env var to GH Action
1 parent 3612ef5 commit 5860c29

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/github-ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,9 @@ jobs:
8888
run: npm install
8989

9090
- name: Create config.json
91-
run: echo "{ \"apiURL\": $API_URL, \"APP_ENV\": $APP_ENV }" > src/config.json
91+
run: echo $TEST_CONFIG_JSON > src/config.json
9292
env:
93-
API_URL: "http://localhost:1337"
94-
APP_ENV: "prod"
93+
TEST_CONFIG_JSON: "{ \"apiURL\": \"http://localhost:1337\", \"APP_ENV\": \"prod\" }"
9594

9695
- name: Test Cypress
9796
uses: cypress-io/github-action@v2

0 commit comments

Comments
 (0)