App-GHGen

 view release on metacpan or  search on metacpan

action.yml  view on Meta::CPAN

          output=$(ghgen analyze 2>&1)
          exit_code=$?
        fi
        
        echo "$output"
        
        # Extract metrics
        issues=$(echo "$output" | grep "Total issues found:" | awk '{print $NF}')
        fixes=$(echo "$output" | grep "Fixes applied:" | awk '{print $NF}')
        
        echo "issues=${issues:-0}" >> $GITHUB_OUTPUT
        echo "fixes=${fixes:-0}" >> $GITHUB_OUTPUT
        
        # Save full output for commenting
        echo "$output" > /tmp/ghgen-analysis.txt
        
        exit 0  # Don't fail the action if issues found
    
    - name: Generate comment
      if: github.event_name == 'pull_request' && inputs.mode == 'comment'
      id: generate-comment
      shell: bash



( run in 0.555 second using v1.01-cache-2.11-cpan-13bb782fe5a )