diff --git a/.github/workflows/run-smoke-test.yml b/.github/workflows/run-smoke-test.yml index ffa7929..dcc6f84 100755 --- a/.github/workflows/run-smoke-test.yml +++ b/.github/workflows/run-smoke-test.yml @@ -21,4 +21,4 @@ jobs: - run: npm install && node --unhandled-rejections=strict index.js working-directory: ./examples/basic/ env: - API_BASE_PATH: "https://nightly-api.regulaforensics.com" + API_BASE_PATH: ${{ github.base_ref == 'develop' && 'https://nightly-api.regulaforensics.com' || github.base_ref == 'stable' && 'https://rc-api.regulaforensics.com' || github.base_ref == 'master' && 'https://api.regulaforensics.com' || 'https://nightly-api.regulaforensics.com' }} diff --git a/setup.sh b/setup.sh index 19727d5..46bb234 100755 --- a/setup.sh +++ b/setup.sh @@ -6,6 +6,4 @@ cd ./examples/basic || exit npm install -export API_BASE_PATH="https://nightly-api.regulaforensics.com" - -node index.js \ No newline at end of file +node index.js