Skip to content

Commit 24e7a25

Browse files
committed
Look for correct PackageVersion tag
1 parent 3a062ac commit 24e7a25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ jobs:
5757
run: |
5858
git config --local user.email "action@github.com"
5959
git config --local user.name "GitHub Action"
60-
$version = (Select-String -Path "Directory.Build.props" -Pattern '<Version>(.*?)</Version>').Matches.Groups[1].Value
60+
$version = (Select-String -Path "Directory.Build.props" -Pattern '<PackageVersion>(.*?)</PackageVersion>').Matches.Groups[1].Value
6161
git tag -a "$version" -m "Release $version"
6262
git push origin "$version"
6363
6464
- name: Check if version is not a pre-release
6565
id: check_pre_release
6666
run: |
67-
$version = (Select-String -Path "Directory.Build.props" -Pattern '<Version>(.*?)</Version>').Matches.Groups[1].Value
67+
$version = (Select-String -Path "Directory.Build.props" -Pattern '<PackageVersion>(.*?)</PackageVersion>').Matches.Groups[1].Value
6868
$isPreRelease = $version -match '-(alpha|beta)'
6969
echo "IsPreRelease=$isPreRelease"
7070
# Setting output that indicates whether it's a pre-release version

0 commit comments

Comments
 (0)