Skip to content

Github Actions unable to send ocular data #60

@gravataLonga

Description

@gravataLonga

Hello, i'm new at sending data to scrutinizer-ci and github actions, but i've some automation on my actions on github, but i'm getting same erro and can't putting work. I'm always get same error:

In RepositoryIntrospector.php line 39:
  Failed to retrieve commit parents. If you use a shallow git checkout, pleas  
  e checkout at least a depth of one.                                          
code-coverage:upload [--api-url API-URL] [--repository REPOSITORY] [--revision REVISION] [--format FORMAT] [--parent PARENT] [--] <coverage-file>
Error: Process completed with exit code 1.

This is my action:

./vendor/bin/ocular code-coverage:upload build/logs/clover.xml --format=php-clover --repository='g/gravataLonga/container' --revision=${{ github.event.pull_request.head.sha || github.sha }}

What i'm doing wrong?
Many thank for any help, probably this isn't best place, you can remove my issue.

Best Regards,
Jonathan Fontes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions