Skip to content

Commit

Permalink
Fix issue getting current version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanb58 committed Jul 5, 2023
1 parent e4cfd61 commit e284f14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto-export-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ jobs:
run: |
# First we need to get the current online version.
$output = pac solution list
echo $output
$lines = $output -split "`n"
$versionLine = $lines | Where-Object { $_ -match '${{ github.event.inputs.solution_name }}' }
$version = ($versionLine -split "\s+")[4]
$version = ($versionLine -split "\s+")[3]
echo "::set-output name=current_version::$version"
# Split the version into its components
$versionParts = $version.Split('.')
Expand Down

0 comments on commit e284f14

Please sign in to comment.