Skip to content

Commit 0f88d3c

Browse files
committed
#58 CI strykey
1 parent 257055d commit 0f88d3c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/CI-time-tracker-ui.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ jobs:
5050
import os
5151
base_path = os.environ.get('BASE_PATH', 'src/environments/')
5252
with open(base_path + "keys.ts", "w") as fileWithKeys:
53-
fileWithKeys.write('export const AUTHORITY = ') + str(os.environ['SCOPES']).split(",") + ';';
54-
fileWithKeys.write('\nexport const CLIENT_ID = ' + os.environ['CLIENT_ID']) + ';';
55-
fileWithKeys.write('\nexport const SCOPES = ' + os.environ['AUTHORITY']) + ';';
53+
scopes = str(os.environ['SCOPES']).split(",")
54+
client_id = os.environ['CLIENT_ID']
55+
authority = os.environ['AUTHORITY']
56+
fileWithKeys.write(f'export const SCOPES = {scopes};')
57+
fileWithKeys.write(f'\nexport const CLIENT_ID = {client_id};')
58+
fileWithKeys.write(f'\nexport const AUTHORITY = {authority};')
5659
5760
- name: Run the test
5861
run: npm run ci-test --if-present

0 commit comments

Comments
 (0)