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 8dfddf9 commit fede81f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,22 @@ jobs:
run: |
[xml]$csproj = Get-Content "FolderFlex/FolderFlex.csproj"
$version = $csproj.Project.PropertyGroup.AssemblyVersion
if (-not $version) {
$version = $csproj.Project.PropertyGroup.FileVersion
}
if (-not $version) {
$version = "0.0.0.0" # Valor padrão, se necessário
}
$version = $version.Trim()
echo "Version found: $version"
echo "VERSION=$version" >> $GITHUB_ENV
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
env:
DOTNET_ROOT: C:\Program Files\dotnet

- name: Criando Pasta para os Arquivos
run: |
Expand Down

0 comments on commit fede81f

Please sign in to comment.