I have a workflow that has 2 jobs. The first job runs angular tests and saves them to tests.log file. The second job just prints the content of the tests.log
What I want however is to post the content of the tests.log file as a general comment on specific Pull Request. So,
Someone makes a Pull Request
The workflow gets triggered and it runs the tests.
Test results are saved into tests.log file for the next job in the sequence.
The next job in the sequence uses the content of tests.log file and posts a comment to the current Pull Request. Content of the comment are test logs from the tests.log file.
I managed with 1-3 steps of my workflow. But for step 4 I don’t understand how to create a comment for a Pull Request; I managed to access and just read logs from tests.logs file. Search results for “GitHub API calls in workflow” and simmilar resulted in how to make API calls to get Workflow or Actions of a project. But I need an opposite thing - I need to call GitHub API inside a workflow