-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create_workflow_dispatch failed with GitHubError #622
Comments
Maybe should be changed to
|
Thank you for your issue!
Not possible, |
I'm also having this issue. I was able to fix it by adding octocrab
.actions()
.create_workflow_dispatch("owner", "repo", workflow_id, "develop")
.inputs(serde_json::json!({}))
.send()
.await?; |
@XAMPPRocky Sorry, I didn't see the notification earlier. let route = format!(
"https://api.github.com/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches",
owner = owner,
repo = repo_name,
workflow_id = workflow_id
);
let res = octocrab
._post(route, Some(&serde_json::json!({ "ref": "develop"})))
.await?; |
create_workflow_dispatch failed with GitHubError
Error message is
Invalid request.\n\nFor 'properties/inputs', nil is not an object
The text was updated successfully, but these errors were encountered: