From c8fe3857b9208abea9e0b43fb8115f8ef955b6ef Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Wed, 11 Mar 2020 12:12:54 +0300 Subject: [PATCH] fixed inline script --- images.CI/azure-pipelines/image-generation.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images.CI/azure-pipelines/image-generation.yml b/images.CI/azure-pipelines/image-generation.yml index 246b36f27..7daa4fb69 100644 --- a/images.CI/azure-pipelines/image-generation.yml +++ b/images.CI/azure-pipelines/image-generation.yml @@ -60,7 +60,8 @@ jobs: inputs: targetType: 'inline' script: | - Get-Content ((Get-ChildItem -Path "images" -Include ${{ parameters.image_readme_name }} -Recurse -Depth 1).FullName) + $docsPath = (Get-ChildItem -Path "images" -Include ${{ parameters.image_readme_name }} -Recurse -Depth 1 | Select-Object -First 1 + Get-Content -Path $docsPath - task: PowerShell@2 displayName: 'Clean up resources'