Skip to content

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CassioJhones authored Dec 24, 2024
1 parent 0416218 commit 96711e6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,21 @@ jobs:
[xml]$csproj = Get-Content "FolderFlex/FolderFlex.csproj"
$version = $csproj.Project.PropertyGroup.AssemblyVersion
if ($version) {
$version = $version.Trim()
} else {
$version = $csproj.Project.PropertyGroup.FileVersion
if ($version) {
if ($version -and $version.Trim()) {
$version = $version.Trim()
} else {
$version = "0.0.0.0" # Valor padrão
}
} else {
$version = $csproj.Project.PropertyGroup.FileVersion
if ($version -and $version.Trim()) {
$version = $version.Trim()
} else {
$version = "0.0.0.0" # Valor padrão
}
}
echo "Version found: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Criando Pasta para os Arquivos
run: |
mkdir ./output/FolderFlexFiles
Expand Down

0 comments on commit 96711e6

Please sign in to comment.