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}"
|
||||
|
|
|
@ -45,10 +45,13 @@ jobs:
|
|||
$playbooksFolderIndex = $fileValue.IndexOf("Playbooks/")
|
||||
$playbooksWithSingleFileFolderIndex = $fileValue.IndexOf("Playbooks")
|
||||
if ($playbooksFolderIndex -gt 0 -or $playbooksWithSingleFileFolderIndex -gt 0)
|
||||
{
|
||||
if ($currentFileStr.Contains(".json"))
|
||||
{
|
||||
$hasPlaybooksChanged = $true
|
||||
$playbookFilesList += $currentFileStr
|
||||
}
|
||||
}
|
||||
|
||||
$dataConnectorFolderWithSpaceIndex = $fileValue.IndexOf("Data Connectors")
|
||||
$dataConnectorFolderWithoutSpaceIndex = $fileValue.IndexOf("DataConnectors")
|
||||
|
|
Загрузка…
Ссылка в новой задаче