File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ foreach ($test in Get-ChildItem test/*.Tests) {
65
65
Pop-Location
66
66
67
67
if ($env: NUGET_API_KEY `
68
- -and ((" tag " -eq $ env: GITHUB_REF_NAME -and $NULL -ne $prefix ) `
68
+ -and (($ env: GITHUB_REF_TYPE -eq " tag " -and $NULL -ne $prefix ) `
69
69
-or ($NULL -ne $suffix -and ($env: CI_TARGET_BRANCH -eq " dev" -or $env: CI_TARGET_BRANCH -eq " master" )))) {
70
70
# GitHub Actions will only supply this to branch builds and not PRs. We publish
71
71
# builds from any branch this action targets (i.e. master and dev).
@@ -81,6 +81,6 @@ if ($env:NUGET_API_KEY `
81
81
if ($null -eq $env: NUGET_API_KEY ) {
82
82
Write-Output " build: Skipping Nuget publish, API key null"
83
83
} else {
84
- Write-Output " build: Skipping Nuget publish reftype: $env: GITHUB_REF_TYPE "
84
+ Write-Output " build: Skipping Nuget publish reftype: $env: GITHUB_REF_TYPE , branch: $ env: CI_TARGET_BRANCH "
85
85
}
86
86
}
You can’t perform that action at this time.
0 commit comments