added check for playbook to check only for .json file

This commit is contained in:
v-amolpatil 2022-12-14 18:13:28 +05:30
Родитель fd64f9e8f2
Коммит b7c856bde3
2 изменённых файлов: 11 добавлений и 3 удалений

5
.github/actions/Dockerfile поставляемый
Просмотреть файл

@ -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}"

3
.github/workflows/arm-ttk-validations.yaml поставляемый
Просмотреть файл

@ -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")