Skip to content
Closed
Show file tree
Hide file tree
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
Next Next commit
fix: TT-610 Time Tracker UI Refactor - Environment Variables
  • Loading branch information
wilc0519 committed Apr 6, 2022
commit e1597528f6bb18384b988221308b490965810766
3 changes: 3 additions & 0 deletions .github/workflows/CI-time-tracker-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ jobs:
AZURE_APP_CONFIGURATION_CONNECTION_STRING: ${{ secrets.AZURE_APP_CONFIGURATION_CONNECTION_STRING }}
run: |
chmod +x ./scripts/populate-keys.sh
chmod +x ./scripts/create-keys.sh
sh ./scripts/populate-keys.sh
sh ./scripts/create-keys.sh


- name: Running tests
run: npm run ci-test --if-present
Expand Down
8 changes: 8 additions & 0 deletions scripts/create-keys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
> ./src/environments/keys.ts
echo 'export const AUTHORITY = '$AUTHORITY'' >> ./src/environments/keys.ts
echo 'export const CLIENT_ID = '$CLIENT_ID'' >> ./src/environments/keys.ts
echo 'export const SCOPES = '$SCOPES'' >> ./src/environments/keys.ts
echo 'export const STACK_EXCHANGE_ID = '$STACK_EXCHANGE_ID'' >> ./src/environments/keys.ts
echo 'export const STACK_EXCHANGE_ACCESS_TOKEN = '$STACK_EXCHANGE_ACCESS_TOKEN'' >> ./src/environments/keys.ts
echo 'export const AZURE_APP_CONFIGURATION_CONNECTION_STRING = '$AZURE_APP_CONFIGURATION_CONNECTION_STRING'' >> ./src/environments/keys.ts
cat ./src/environments/keys.ts
Empty file modified scripts/populate-keys.sh
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ToastrService } from 'ngx-toastr';
import { formatDate } from '@angular/common';
import { OnChanges, SimpleChanges, Component, Input, OnInit } from '@angular/core';
import { OnChanges, SimpleChanges, Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { DATE_FORMAT } from 'src/environments/environment';
import * as entryActions from '../../../time-clock/store/entry.actions';
Expand Down