Skip to content

WorkflowName and triggering event on checkRun API #26191

Answered by weide-zhou
qfc asked this question in Actions
Discussion options

You must be logged in to vote

Hi @qfc ,

checkrun rest api doesn’t contain workflow name aknd triggering event type.  These information can be found in github context content. You can get the workflow name and event type with below code:

steps:
      - name: Dump GitHub context
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"
      - name: check workflowname
        run: |
          echo ${{ github.workflow }}
      - name: check eventname
        run: |
          echo ${{ github.event_name }}

If you’d like any improvement of checkrun rest api, it’s recommended to raise your idea here where github manager will take a review.

Thanks!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants