Skip to content

Commit

Permalink
issue-11: update oncEnv from logical values to char
Browse files Browse the repository at this point in the history
  • Loading branch information
IslaL committed Apr 19, 2024
1 parent 459c14e commit 8f94aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
source-folder: 'onc'
env:
TOKEN: ${{ secrets.TOKEN }}
ONC_ENV: true
ONC_ENV: 'prod'

4 changes: 3 additions & 1 deletion onc/tests/globals.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

% get environment from ONC_ENV or use QA as default
config.production = getenv('ONC_ENV');
if isempty(config.production)
if strcmp(config.production, 'prod')
config.production = true;
else
config.production = false;
end
% Set and save config
Expand Down

0 comments on commit 8f94aab

Please sign in to comment.