joonvena / robotframework-reporter-action

This action can be used to send parsed test report as comment to that commit that triggered test run
26 stars 14 forks source link

[Feature request] Support reporting to a PR from another repository #25

Open lachaib opened 1 year ago

lachaib commented 1 year ago

Hello,

In my current organisation, we've got a specific repository (say robot-tests) containing robot framework tests and corresponding secrets. In order to run those tests after deployment of any service stored in other repositories (serviceA, serviceB), I need to dispatch a workflow. I insist on the workflow_dispatch event because the workflow_call event from another repo cannot access secrets stored for robot-tests repository (and it's a bad practice to store everything at organisation level).

Therefore, I would like to enable this action to support passing another repository as input.

Following what I could see in the action code, the simplest way would be to add

repository:
    type: string
    description: Repository ([Owner/]Repository) of pull request to decorate with report
    default: "${{github.repository}}"

and modify the bash step to parse it instead of direct parsing of ${{github.repository}}

I will make a PR accordingly if you agree with it.