Skip to content

Commit e159752

Browse files
committed
fix: TT-610 Time Tracker UI Refactor - Environment Variables
1 parent 7e0c9db commit e159752

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ jobs:
4949
AZURE_APP_CONFIGURATION_CONNECTION_STRING: ${{ secrets.AZURE_APP_CONFIGURATION_CONNECTION_STRING }}
5050
run: |
5151
chmod +x ./scripts/populate-keys.sh
52+
chmod +x ./scripts/create-keys.sh
5253
sh ./scripts/populate-keys.sh
54+
sh ./scripts/create-keys.sh
55+
5356
5457
- name: Running tests
5558
run: npm run ci-test --if-present

scripts/create-keys.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
> ./src/environments/keys.ts
2+
echo 'export const AUTHORITY = '$AUTHORITY'' >> ./src/environments/keys.ts
3+
echo 'export const CLIENT_ID = '$CLIENT_ID'' >> ./src/environments/keys.ts
4+
echo 'export const SCOPES = '$SCOPES'' >> ./src/environments/keys.ts
5+
echo 'export const STACK_EXCHANGE_ID = '$STACK_EXCHANGE_ID'' >> ./src/environments/keys.ts
6+
echo 'export const STACK_EXCHANGE_ACCESS_TOKEN = '$STACK_EXCHANGE_ACCESS_TOKEN'' >> ./src/environments/keys.ts
7+
echo 'export const AZURE_APP_CONFIGURATION_CONNECTION_STRING = '$AZURE_APP_CONFIGURATION_CONNECTION_STRING'' >> ./src/environments/keys.ts
8+
cat ./src/environments/keys.ts

scripts/populate-keys.sh

100644100755
File mode changed.

src/app/modules/reports/components/time-range-form/time-range-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ToastrService } from 'ngx-toastr';
22
import { formatDate } from '@angular/common';
3-
import { OnChanges, SimpleChanges, Component, Input, OnInit } from '@angular/core';
3+
import { OnChanges, SimpleChanges, Component, Input, OnInit } from '@angular/core';
44
import { FormControl, FormGroup } from '@angular/forms';
55
import { DATE_FORMAT } from 'src/environments/environment';
66
import * as entryActions from '../../../time-clock/store/entry.actions';

0 commit comments

Comments
 (0)