From f6bafa839f903f5d24cb0ee6d2413b051bf10f33 Mon Sep 17 00:00:00 2001 From: DeeDeeG Date: Tue, 19 Dec 2023 04:19:22 -0500 Subject: [PATCH] CI: Simplify Pulsar version string parsing in tests.yml --- .github/workflows/tests.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ebdc0a7..3ea0c4c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,9 +26,5 @@ jobs: - name: Ensure Installation was successful id: pulsar-version run: | - ( - pulsar --version | - ConvertFrom-String -PropertyNames Application,Delimiter,Version | - Where-Object {$_.Application -eq "Pulsar" } | - Select-Object -Property @{n='version'; e={ return "$($PSItem.Application) $($PSItem.Version)" }} - ).version >> $env:GITHUB_STEP_SUMMARY + $version = (pulsar --version | Out-String) -Split '\n' -Like 'Pulsar*' -Replace 'Pulsar' -Replace ':' -Replace '\s' + echo "Pulsar $version" >> $env:GITHUB_STEP_SUMMARY