.forgejo/workflows/dotnet.yaml aktualisiert
Some checks failed
Dotnet Build / build (push) Failing after 1m12s
Some checks failed
Dotnet Build / build (push) Failing after 1m12s
This commit is contained in:
parent
e57fef6b57
commit
16b21bf005
1 changed files with 10 additions and 0 deletions
|
@ -15,6 +15,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
msbuild -version
|
msbuild -version
|
||||||
|
|
||||||
|
- name: Extract project version
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$version = Select-String -Path "WeeXnes/WeeXnes.csproj" -Pattern "<Version>(.+?)</Version>" | ForEach-Object {
|
||||||
|
($_ -match "<Version>(.+?)</Version>") | Out-Null
|
||||||
|
$matches[1]
|
||||||
|
}
|
||||||
|
Write-Output "##vso[task.setvariable variable=PROJECT_VERSION]$version"
|
||||||
|
Write-Output "Project version is $version"
|
||||||
|
|
||||||
|
|
||||||
- name: Restore Packages
|
- name: Restore Packages
|
||||||
run: nuget restore WeeXnes.sln
|
run: nuget restore WeeXnes.sln
|
||||||
|
|
Loading…
Add table
Reference in a new issue