Pipeline: Get text after list of commits

This commit is contained in:
junglebus 2020-03-14 16:43:40 +11:00 committed by GitHub
parent 9a39fcc310
commit 1123e9d101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -388,6 +388,7 @@ stages:
$logText = Invoke-WebRequest $logUrl
if ($logText -like '*: GitHub Release*')
{
$logInspect = ($logText -split "Creating a release for tag:")[1]
$successCount = (Select-String "Uploaded file successfully:" -InputObject $logText -AllMatches).Matches.Count
$failureCount = (Select-String "Duplicate asset found:" -InputObject $logText -AllMatches).Matches.Count
Write-Output "Success count is: $successCount and failure count is: $failureCount"