File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments