File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 8
8
- ' *'
9
9
pull_request :
10
10
branches : [ main, dev, dajusto/validate-release-notes-are-provided ]
11
- types : [labeled, unlabeled]
12
11
paths :
13
12
- ' .github/workflows/guarantee-release-notes.yml'
14
13
- ' .github/workflows/guarantee-version-correctness.yml'
@@ -27,15 +26,14 @@ jobs:
27
26
$minVersion = [Version]"1.0.0" # TBD
28
27
$csprojPath = ".\src\WebJobs.Extensions.DurableTask\WebJobs.Extensions.DurableTask.csproj"
29
28
30
- # Parse the .csproj file to find the <Version > element
29
+ # Parse the .csproj file to find the <MajorVersion > element
31
30
[xml]$csproj = Get-Content -Path $csprojPath
32
- $projectVersionString = $csproj.Project.PropertyGroup.Version
33
- if (-not $projectVersionString) {
34
- Write-Error "Version tag not found in the .csproj file."
35
- exit 1
36
- }
31
+ $majorVersionString = $csproj.Project.PropertyGroup.MajorVersion
32
+ $minorVersionString = $csproj.Project.PropertyGroup.MinorVersion
33
+ $patchVersionString = $csproj.Project.PropertyGroup.PatchVersion
34
+ $version = "$majorVersionString.$minorVersionString.$patchVersionString"
37
35
38
- $projectVersion = [Version]$projectVersionString
36
+ $projectVersion = [Version]$version
39
37
40
38
# Compare the project version to the minimum required version
41
39
if ($projectVersion -lt $minVersion) {
You can’t perform that action at this time.
0 commit comments