Skip to content

Commit

Permalink
Allow Multiple EDfi ODS in path
Browse files Browse the repository at this point in the history
  • Loading branch information
semalaiappan committed Feb 28, 2024
1 parent 5e9b730 commit 18c886e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CodeQL Security Scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
$ErrorActionPreference = 'Stop'
$PSVersionTable
. $env:GITHUB_WORKSPACE/Ed-Fi-ODS-Implementation/Initialize-PowershellForDevelopment.ps1
Invoke-CodeGen -Engine SQLServer -RepositoryRoot $env:GITHUB_WORKSPACE/Ed-Fi-ODS/
Invoke-CodeGen -Engine SQLServer -RepositoryRoot $env:GITHUB_WORKSPACE
- name: build
shell: pwsh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ public CodeRepositoryHelper(string codeRepositoryPath)
Path.DirectorySeparatorChar,
dirList.TakeWhile(x => !x.EqualsIgnoreCase(CodeRepositoryConventions.EdFiOdsFolderName)));

if (Directory.Exists(codeRepositoryPath))
{
bool IsEdFiOdsFolderExist = Directory.GetDirectories(codeRepositoryPath).Where(s => s.Equals(codeRepositoryPath + CodeRepositoryConventions.EdFiOdsFolderName)).Any();

if (IsEdFiOdsFolderExist)
{
root = codeRepositoryPath;
}
}

_repositoryByName.Add(CodeRepositoryConventions.Root, root);
_repositoryByName.Add(CodeRepositoryConventions.Ods, Path.Combine(root, CodeRepositoryConventions.EdFiOdsFolderName));

Expand Down

0 comments on commit 18c886e

Please sign in to comment.