docs.github.com / events-that-trigger-workflows # workflow_dispatch
To enable a workflow to be triggered manually, you need to configure
the workflow_dispatch event. You can manually trigger a
workflow run using the GitHub API, GitHub CLI, or the GitHub UI.
on: workflow_dispatch