File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,20 +34,20 @@ jobs:
3434      id : set-matrix 
3535      run : | 
3636        # Group the output by platform. 
37-         CHECK_RUNS =$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs" --paginate) 
37+         RUNS =$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs" --paginate) 
3838        echo "checks..." 
39-         FILTERED=$(jq -c -r '.check_runs[] | select(.name | endswith("-env")) |  { "config": .name, "build_path": .output.text }' <<< "$CHECK_RUNS ") 
39+         FILTERED=$(jq -c -r '.check_runs[] | select(.name | endswith("-env")) |  { "config": .name, "build_path": .output.text }' <<< "$RUNS ") 
4040        echo "filtered..." 
41-         GROUPS =$(jq --slurp -c -r '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})' <<< "$FILTERED") 
41+         MATRIX =$(jq --slurp -c -r '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})' <<< "$FILTERED") 
4242        echo "groups..." 
43-         if jq -e . <<< "$GROUPS " > /dev/null 2>&1; then  # JSON validation 
43+         if jq -e . <<< "$MATRIX " > /dev/null 2>&1; then  # JSON validation 
4444          echo "Valid JSON" 
4545        else 
46-           echo "Invalid JSON: $GROUPS " 
46+           echo "Invalid JSON: $MATRIX " 
4747          exit 1 # or handle the error appropriately 
4848        fi 
4949        echo "creating result matrix." 
50-         echo "matrix=$GROUPS " >> $GITHUB_OUTPUT 
50+         echo "matrix=$MATRIX " >> $GITHUB_OUTPUT 
5151
5252   #  We need this process step in here, because we have in excess of 256 jobs.
5353  process :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments