File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments