added check for playbook to check only for .json file
This commit is contained in:
Родитель
fd64f9e8f2
Коммит
b7c856bde3
|
@ -2,6 +2,9 @@
|
|||
FROM mcr.microsoft.com/powershell:latest
|
||||
|
||||
ARG SolutionName
|
||||
# ARG SolutionName1
|
||||
# ENV snamea ${SolutionName1}
|
||||
|
||||
ARG mainTemplateOrCreateUiDefinitionTemplateChanged
|
||||
ENV mainTemplateOrCreateUiDefinitionTemplateChanged ${mainTemplateOrCreateUiDefinitionTemplateChanged}
|
||||
|
||||
|
@ -21,8 +24,10 @@ ARG hasDataConnectorFileChanged
|
|||
ENV hasDataConnectorFileChanged ${hasDataConnectorFileChanged}
|
||||
|
||||
ENV sname ${SolutionName}
|
||||
ENV sname1 $SolutionName
|
||||
RUN echo "playbooksChanged ${playbooksChanged}"
|
||||
RUN echo "mainCreateUIExist ${mainTemplateOrCreateUiDefinitionTemplateChanged}"
|
||||
|
||||
RUN echo "isDataConnectorFolderNameWithSpace ${isDataConnectorFolderNameWithSpace}"
|
||||
RUN echo "dataConnectorFileNames ${dataConnectorFileNames}"
|
||||
RUN echo "hasDataConnectorFileChanged ${hasDataConnectorFileChanged}"
|
||||
|
|
|
@ -35,7 +35,7 @@ jobs:
|
|||
Write-Host "Current File is '$currentFile'"
|
||||
$currentFileStr = $currentFile.ToString()
|
||||
$mainTemplateOrCreateUiDefinitionTemplateChanged = $currentFileStr.ToLower().Contains("maintemplate.json") -or $currentFileStr.ToLower().Contains("createUiDefinition.json")
|
||||
|
||||
|
||||
if ($mainTemplateOrCreateUiDefinitionTemplateChanged -eq $true)
|
||||
{
|
||||
$hasmainTemplateOrCreateUiDefinitionTemplateChanged = $true
|
||||
|
@ -46,8 +46,11 @@ jobs:
|
|||
$playbooksWithSingleFileFolderIndex = $fileValue.IndexOf("Playbooks")
|
||||
if ($playbooksFolderIndex -gt 0 -or $playbooksWithSingleFileFolderIndex -gt 0)
|
||||
{
|
||||
$hasPlaybooksChanged = $true
|
||||
$playbookFilesList += $currentFileStr
|
||||
if ($currentFileStr.Contains(".json"))
|
||||
{
|
||||
$hasPlaybooksChanged = $true
|
||||
$playbookFilesList += $currentFileStr
|
||||
}
|
||||
}
|
||||
|
||||
$dataConnectorFolderWithSpaceIndex = $fileValue.IndexOf("Data Connectors")
|
||||
|
|
Загрузка…
Ссылка в новой задаче