File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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) {
6565Pop-Location 
6666
6767if  ($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 ) ` 
6969      -or  ($NULL  -ne  $suffix  -and  ($env: CI_TARGET_BRANCH  -eq  " dev" -or  $env: CI_TARGET_BRANCH  -eq  " master" 
7070    #  GitHub Actions will only supply this to branch builds and not PRs. We publish
7171    #  builds from any branch this action targets (i.e. master and dev).
@@ -81,6 +81,6 @@ if ($env:NUGET_API_KEY `
8181    if  ($null  -eq  $env: NUGET_API_KEY ) {
8282      Write-Output  " build: Skipping Nuget publish, API key null" 
8383    } 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 " 
8585    }
8686}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments