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".
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".