Skip to content

Commit

Permalink
Merge pull request #32 from pulsar-edit/simplify-pulsar-version-parsi…
Browse files Browse the repository at this point in the history
…ng-in-CI

CI: Simplify Pulsar version string parsing in tests.yml
  • Loading branch information
confused-Techie authored Dec 19, 2023
2 parents eb44e94 + f6bafa8 commit 55dce3e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 55dce3e

Please sign in to comment.