Skip to content

Commit c90e090

Browse files
committed
ci: fix capturing project version on upload
1 parent 1b2f784 commit c90e090

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/upload.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
$pattern = "\<Version\>(.*?)\<\/Version\>";
4343
$csproj = Join-Path -Path "LuaInstaller" -ChildPath "LuaInstaller" |
4444
Join-Path -ChildPath "LuaInstaller.csproj";
45-
$version_line = (Get-Content $csproj) -match $pattern;
45+
$version_line = (Get-Content $csproj) -match $pattern | Select-Object -First 1;
4646
4747
if (-not ($version_line -match $pattern))
4848
{

0 commit comments

Comments
 (0)