Skip to content

Commit

Permalink
A brave new world
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ authored Jan 29, 2023
1 parent b087f4f commit f85bf19
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/rununitybuildmultiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ jobs:
return 0
}
}
function Get-LetterCount
{
Param ([string]$string)
echo "String [$string] has a length of [$string.Length]"
return $string.Length
}
echo "::endgroup::"
echo "::group::Get Installed Unity version based on Matrix"
Expand All @@ -141,7 +148,7 @@ jobs:
echo "Installed unity versions are {$InstalledUnityVersions}"
echo "Unity install path is {$editorRootPath}"
$versionLength = [string]$unityVersion.Length
$versionLength = Get-LetterCount $unityVersion
if ($versionLength -eq 4) {
$queryUnityVersion = GetString $InstalledUnityVersions "$unityVersion.{4,7}" -MatchIndex 0
echo "Found [$queryUnityVersion] from [$InstalledUnityVersions] with version length $versionLength"
Expand Down

0 comments on commit f85bf19

Please sign in to comment.