File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed 
.github/actions/get-latest-upstream Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2525          RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[] | select(.prerelease == false)] | .[0].tag_name') 
2626        else 
2727          echo "Getting the latest Nightly release." 
28-           RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[] | select(.prerelease == true)] | .[0].tag_name') 
28+           RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[] | select(.prerelease == true)] | .[0].tag_name' || echo "" ) 
2929          if [ -z "${RELEASE}" ]; then 
3030            echo "Nightly release not found, getting the latest stable release." 
3131            RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[] | select(.prerelease == false)] | .[0].tag_name') 
Original file line number Diff line number Diff line change 237237
238238  wait_for_api_respond
239239  while  curl --noproxy " *" " Authorization: Basic ${BASIC_AUTH} " ${NODE_STATUS_ENDPOINT}  > /tmp/status.json;  do 
240-     session_id=$( jq -e  " ${JQ_SESSION_ID_QUERY} "   ||   echo   " null " ) 
240+     session_id=$( jq -r  " ${JQ_SESSION_ID_QUERY} " ) 
241241    if  [[ " $session_id " !=  " null" &&  " $session_id " !=  " " &&  " $session_id " !=  " reserved" &&  " $recording_started " =  " false" ;  then 
242242      echo  " $( date -u +" ${ts_format} " ) ${process_name} ] - Session: $session_id  is created" 
243243      return_list=($( bash ${VIDEO_CONFIG_DIRECTORY} /video_graphQLQuery.sh " $session_id " ) 
273273    fi 
274274    prev_session_id=$session_id 
275275  done 
276+   stop_if_recording_inprogress
276277  echo  " $( date -u +" ${ts_format} " ) ${process_name} ] - Node API is not responding now, exiting..." 
277278fi 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments