mirror of https://github.com/Jackett/Jackett
Pipeline: Get text after list of commits
This commit is contained in:
parent
9a39fcc310
commit
1123e9d101
|
@ -388,6 +388,7 @@ stages:
|
||||||
$logText = Invoke-WebRequest $logUrl
|
$logText = Invoke-WebRequest $logUrl
|
||||||
if ($logText -like '*: GitHub Release*')
|
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
|
$successCount = (Select-String "Uploaded file successfully:" -InputObject $logText -AllMatches).Matches.Count
|
||||||
$failureCount = (Select-String "Duplicate asset found:" -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"
|
Write-Output "Success count is: $successCount and failure count is: $failureCount"
|
||||||
|
|
Loading…
Reference in New Issue