App-GHGen

 view release on metacpan or  search on metacpan

action.yml  view on Meta::CPAN

        
        cat /tmp/comment.md
    
    - name: Comment on PR
      if: github.event_name == 'pull_request' && inputs.mode == 'comment' && steps.analyze.outputs.issues > 0
      id: comment
      uses: actions/github-script@v8
      with:
        github-token: ${{ inputs.github-token }}
        script: |
          const fs = require('fs');
          const comment = fs.readFileSync('/tmp/comment.md', 'utf8');
          
          const { data } = await github.rest.issues.createComment({
            owner: context.repo.owner,
            repo: context.repo.repo,
            issue_number: context.issue.number,
            body: comment
          });
          
          core.setOutput('url', data.html_url);



( run in 2.523 seconds using v1.01-cache-2.11-cpan-d7a12ab2c7f )