Skip to content

Commit d26c5d5

Browse files
committed
#58 fix github actions for CD
1 parent 9af5e2e commit d26c5d5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,11 @@ jobs:
3333
BASE_PATH: "src/environments/"
3434
run: |
3535
import os
36-
import json
37-
data = {}
3836
base_path = os.environ.get('BASE_PATH', 'src/environments/')
39-
with open(base_path + "keys.example.json", "r+") as jsonFileRead:
40-
data = json.load(jsonFileRead)
41-
data["scopes"] = str(os.environ['SCOPES']).split(",")
42-
data["client_id"] = os.environ['CLIENT_ID']
43-
data["authority"] = os.environ['AUTHORITY']
44-
with open(base_path + ".keys.json", "w+") as jsonFileWrite:
45-
json.dump(data, jsonFileWrite)
37+
with open(base_path + "keys.ts", "w") as fileWithKeys:
38+
fileWithKeys.write('export const AUTHORITY = ') + str(os.environ['SCOPES']).split(",") + ';';
39+
fileWithKeys.write('\nexport const CLIENT_ID = ' + os.environ['CLIENT_ID']) + ';';
40+
fileWithKeys.write('\nexport const SCOPES = ' + os.environ['AUTHORITY']) + ';';
4641
4742
- name: 'run: npm install and build'
4843
run: |

0 commit comments

Comments
 (0)