We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac8b88 commit fb03e62Copy full SHA for fb03e62
build.ps1
@@ -1,4 +1,4 @@
1
-#requires -Version 5
+#requires -Version 5
2
3
param(
4
[ValidateSet("vs2022","vs2019", "nupkg-only", "update-build-version")]
@@ -272,6 +272,11 @@ function Nupkg
272
$gitBranch = git rev-parse --abbrev-ref HEAD
273
$gitCommit = git rev-parse HEAD
274
275
+ if (Test-Path Env:\APPVEYOR_REPO_BRANCH) # https://github.com/appveyor/ci/issues/1606
276
+ {
277
+ $gitBranch = $env:APPVEYOR_REPO_BRANCH
278
+ }
279
+
280
Write-Diagnostic "Building nuget package for $gitCommit on $gitBranch"
281
282
# Build packages
0 commit comments