GitHub Actions workflow_dispatch did not work because the workflow is not on the default branch
To trigger the workflow_dispatch event, your workflow must be in the default branch.
GitHub Actions manual workflow dispatch is only available when the workflow file exists on the repository's default branch, so branch-only workflow edits will not expose the manual run entry point.
workflow_dispatch only triggers workflows that exist on the default branchconfiguration
Observed message
To trigger the workflow_dispatch event, your workflow must be in the default branch.
Why it happens
The workflow file was added or changed only on a non-default branch.
A user expects the manual run button to appear for a workflow that is not yet present on the default branch.
The repository default branch differs from the branch where the workflow was created.
How to fix it
Merge or add the workflow file to the repository's default branch.
Confirm which branch is configured as the default branch before testing manual dispatch.
After the workflow exists on the default branch, retry the manual run from the Actions UI or API.