Skip to content

I can't trigger a workflow with on: status #25007

Answered by jasononeil
jasononeil asked this question in Actions
Discussion options

You must be logged in to vote

It turns out Github Actions aren’t statuses, they’re “checks”.

In my case the real repo I’m working on is using “statuses” but my example repo is using actions, so “checks”.

If I trigger a github status using curl then things magically work

     curl -request POST --url "https://api.github.com/repos/${ORG}/${REPO}/statuses/${SHA}" \
      --header "Authorization: token ${PERSONAL_API_TOKEN}" \
      --header 'content-type: application/json' \
      --data '{"state": "success", "description": "my status", "context": "some/unique/identifier", "target_url": "http://link-in-status/"}'

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
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
1 participant