When adding a workflow_dispatch trigger to a GitHub Actions workflow on a feature branch, the 'Run workflow' button won't appear in the GitHub UI because it only shows when the trigger exists on the main branch. A workaround is to trigger the workflow manually using GitHub CLI with `gh workflow run`, specifying the workflow file, the target branch via --ref, and any input values. This approach is arguably more convenient than the web UI even when the button is available.
9.8K Impressions