Skip to content

Commit 8120c36

Browse files
committed
#58 ignore stryke
1 parent 1e5bc3e commit 8120c36

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,11 @@ jobs:
2525
node-version: '12.x'
2626

2727
- name: Inject Secrets
28-
shell: python
2928
env:
3029
SCOPES: ${{ secrets.scopes }}
3130
CLIENT_ID: ${{ secrets.client_id }}
3231
AUTHORITY: ${{ secrets.authority }}
33-
BASE_PATH: "src/environments/"
34-
run: |
35-
import os
36-
base_path = os.environ.get('BASE_PATH', 'src/environments/')
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']) + ';';
32+
run: sudo sh scripts/populate-keys.sh
4133

4234
- name: 'run: npm install and build'
4335
run: |

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,11 @@ jobs:
4040
run: npm install
4141

4242
- name: Inject Secrets
43-
shell: python
4443
env:
4544
SCOPES: ${{ secrets.scopes }}
4645
CLIENT_ID: ${{ secrets.client_id }}
4746
AUTHORITY: ${{ secrets.authority }}
48-
BASE_PATH: "src/environments/"
49-
run: |
50-
import os
51-
base_path = os.environ.get('BASE_PATH', 'src/environments/')
52-
with open(base_path + "keys.ts", "w") as fileWithKeys:
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};')
47+
run: sudo sh scripts/populate-keys.sh
5948

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

0 commit comments

Comments
 (0)