File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed 
run-minimal-acceptance-tests Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ runs:
114114        sha_input='${{ inputs.sha }}' 
115115        if [[ ! "$sha_input" =~ ^[0-9a-f]{40}$ ]]; then 
116116          # check if value is non-sha valid 
117-           output=$(git rev-parse --verify " $sha_input" ) 
117+           output=$(git rev-parse --verify $sha_input) 
118118          if [[ -n "$output" ]]; then 
119119            printf "::debug:: %s\n" "Valid branch name or sha provided: ${output}" ; 
120120          else 
Original file line number Diff line number Diff line change 8787        sha_input='${{ inputs.sha }}' 
8888        if [[ ! "$sha_input" =~ ^[0-9a-f]{40}$ ]]; then 
8989          # check if value is non-sha valid 
90-           output=$(git rev-parse --verify " $sha_input" ) 
90+           output=$(git rev-parse --verify $sha_input 2>/dev/null ) 
9191          if [[ -n "$output" ]]; then 
9292            printf "::debug:: %s\n" "Valid branch name or sha provided: ${output}" ; 
9393          else 
Original file line number Diff line number Diff line change 7272        sha_input='${{ inputs.sha }}' 
7373        if [[ ! "$sha_input" =~ ^[0-9a-f]{40}$ ]]; then 
7474          # check if value is non-sha valid 
75-           output=$(git rev-parse --verify " $sha_input" ) 
75+           output=$(git rev-parse --verify $sha_input 2>/dev/null ) 
7676          if [[ -n "$output" ]]; then 
7777            printf "::debug:: %s\n" "Valid branch name or sha provided: ${output}" ; 
7878          else 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments