File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 7878        git fetch origin ${{ github.event.pull_request.base.sha }} 
7979        if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q '^.github/workflows'; then 
8080          echo "changed=true" >> "$GITHUB_OUTPUT" 
81-           actionlint_version=$(curl -s https://api.github.com/repos/rhysd/actionlint/releases/latest | jq -r .tag_name) 
81+           response=$(curl -sf https://api.github.com/repos/rhysd/actionlint/releases/latest) 
82+           if [ $? -eq 0 ]; then 
83+             actionlint_version=$(echo "$response" | jq -r .tag_name) 
84+             if [ -z "$actionlint_version" ]; then 
85+               echo "Failed to parse Actionlint version" 
86+               exit 1 
87+             fi 
88+           else 
89+             echo "Failed to fetch latest Actionlint version" 
90+             exit 1 
91+           fi 
8292          echo "actionlint_version=\"$actionlint_version\"" >> "$GITHUB_OUTPUT" 
8393        fi 
8494name : Setup Actionlint 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments