Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
#58 CI strykey
  • Loading branch information
enriquezrene committed Apr 9, 2020
commit 0f88d3c642461bc3586f95efe38c3fab15b12062
9 changes: 6 additions & 3 deletions .github/workflows/CI-time-tracker-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ jobs:
import os
base_path = os.environ.get('BASE_PATH', 'src/environments/')
with open(base_path + "keys.ts", "w") as fileWithKeys:
fileWithKeys.write('export const AUTHORITY = ') + str(os.environ['SCOPES']).split(",") + ';';
fileWithKeys.write('\nexport const CLIENT_ID = ' + os.environ['CLIENT_ID']) + ';';
fileWithKeys.write('\nexport const SCOPES = ' + os.environ['AUTHORITY']) + ';';
scopes = str(os.environ['SCOPES']).split(",")
client_id = os.environ['CLIENT_ID']
authority = os.environ['AUTHORITY']
fileWithKeys.write(f'export const SCOPES = {scopes};')
fileWithKeys.write(f'\nexport const CLIENT_ID = {client_id};')
fileWithKeys.write(f'\nexport const AUTHORITY = {authority};')

- name: Run the test
run: npm run ci-test --if-present