diff --git a/EsrpSign.yml b/EsrpSign.yml index 5820f62..5561958 100644 --- a/EsrpSign.yml +++ b/EsrpSign.yml @@ -62,6 +62,11 @@ steps: - pwsh: | Write-Verbose "BUILD_OUTPUT_PATH- ${{ parameters.buildOutputPath }}" -Verbose Write-Verbose "SIGNED_OUTPUT_PATH- ${{ parameters.signOutputPath }}" -Verbose + if(!(Test-Path '${{ parameters.signOutputPath }}')) + { + Write-Verbose "Creating SIGNED_OUTPUT_PATH- ${{ parameters.signOutputPath }}" -Verbose + $null = New-Item -Path '${{ parameters.signOutputPath }}' -ItemType Directory -force + } $file = Get-ChildItem -Path "${{ parameters.buildOutputPath }}\codesignsummary-*.md" -File $fileName = $file.Name Move-Item -Path "${{ parameters.buildOutputPath }}\$fileName" -Dest "$(Agent.TempDirectory)\$fileName"