Writing Buildkite output to workflow commands for GitHub Actions

I want to take advantage of GitHub’s workflow commands through Buildkite (specifically the setting notice/warning/error messages in-line on the pull request review).

Is there a way to pipe output to a file that gets outputted back to the GitHub Action output so it can be picked up by GitHub’s workflow commands?

i.e. this text snippet in GitHub stdout…

::error title=rule/info-required-fields,file=openapi.yaml,line=3,col=1,endLine=3,endColumn=5::info must define title, description, x-icon, x-logo, x-marketplaceTags, and version.

… becomes this annotation

Hey @SalPersona!

It looks like you might want to utilise GitHub checks. These can be dynamically created in your pipeline; Triggering notifications | Buildkite Documentation

Cheers!

This looks like exactly what I was hoping for. Thank you!