From 6749bd7c8b640d1f66e2d41c6933228616a97402 Mon Sep 17 00:00:00 2001 From: Artsiom Tsybulko Date: Wed, 14 Oct 2026 13:21:19 +0300 Subject: [PATCH] Update GH action --- .github/workflows/run-smoke-test.yml | 2 +- setup.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-smoke-test.yml b/.github/workflows/run-smoke-test.yml index ffa79295..dcc6f847 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 19727d52..46bb2345 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