Skip to content

Fix expected correct response for workflow_dispatch#1789

Open
enescakir wants to merge 1 commit intooctokit:mainfrom
enescakir:fix-workflow_dispatch
Open

Fix expected correct response for workflow_dispatch#1789
enescakir wants to merge 1 commit intooctokit:mainfrom
enescakir:fix-workflow_dispatch

Conversation

@enescakir
Copy link

@enescakir enescakir commented Dec 19, 2025

It looks like GitHub introduced a breaking change in the API response for workflow_dispatch.

The API now returns 200 OK with a response body, while both the documentation1 and the SDK2 still expect the old 204 No Content response.

  workflow_run_id: 20363538233,
  run_url: "https://api.github.com/repos/ubicloud/github-e2e-test-workflows/actions/runs/20363538233",
  html_url: "https://github.com/ubicloud/github-e2e-test-workflows/actions/runs/20363538233"}
>

Fixes #1790

Resolves https://github.com/orgs/community/discussions/182272


Before the change?

  • workflow_dispatch returns false even if it's succeeded.

After the change?

  • workflow_dispatch returns response body as expected.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

It introduces breaking change because GitHub introduced breaking change in their API.

Please see our docs on breaking changes to help!

  • Yes
  • No

Footnotes

  1. https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event--status-codes

  2. https://github.com/octokit/octokit.rb/blob/ea3413c3174571e87c83d358fc893cc7613091fa/lib/octokit/client/actions_workflows.rb#L41-L43

@github-actions
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@enescakir enescakir force-pushed the fix-workflow_dispatch branch from 403ea69 to b3011dd Compare December 19, 2025 08:54
@enescakir enescakir changed the title Fix to expect correct response for workflow_dispatch Fix expected correct response for workflow_dispatch Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🆕 Triage

Development

Successfully merging this pull request may close these issues.

[BUG]: Workflow dispatch events are now suddenly returning 200 for success from the API

2 participants