zyborg / pester-tests-report

GitHub Action to run Pester tests and generate report attached to Workflow Run
MIT License
40 stars 13 forks source link

Add check for workflow_dispatch to Publish-ToCheckRun #23

Closed natescherer closed 1 year ago

natescherer commented 1 year ago

Hello! I discovered in my own testing that when you call a workflow via workflow_dispatch and have publishing to check runs on, the check runs don't attach to that workflow, but instead attach to the first workflow run with the ref. After looking at the checks API, there doesn't appear to be a way to get around this, so I made this change that will skip the attempt to post and put up a notice if $env:GITHUB_EVENT_NAME -eq "workflow_dispatch".

ebekker commented 1 year ago

Thanks!