Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/check_url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check URL configuration

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check-file:
runs-on: ubuntu-latest

env:
FILE_PATH: "Editor/CatalystSDK.cs"
EXPECTED_API_URL: "https://event-router.conductive.ai/ph"
EXPECTED_CATALYST_URL: "https://catalyst-client.conductive.ai/contest/"

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Check file contents
id: check_file
run: |
if grep -q "private string _apiUrl = \"$EXPECTED_API_URL\";" $FILE_PATH && grep -q "private string _catalystURL = \"$EXPECTED_CATALYST_URL\";" $FILE_PATH; then
echo "Catalyst URL or Catalyst API url correctly set to production values"
else
echo "Catalyst URL or Catalyst API url are not set properly."
exit 1
fi
4 changes: 2 additions & 2 deletions Editor/CatalystSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static CatalystSDK Instance {

[SerializeField] public string _apiKey = null;
[SerializeField] public string sceneToShowButton = null;
private string _apiUrl = "https://event-router.qa-conductive.ai/ph";
private string _apiUrl = "https://event-router.conductive.ai/ph";
private string _catalystURL = "https://catalyst-client.conductive.ai/contest/";
private HttpClient _httpClient;
private bool showToolbar = true;
Expand Down Expand Up @@ -508,4 +508,4 @@ private void Update() {
AsyncSyncCache();
}
}
}
}