CICD-005 · Launch a manual run
Encyclopedia · Events and triggers · All snippets
Previous · CICD-004 · Next · CICD-006
1. Where it fits
- Placement .github/workflows/ci.yml, at workflow level, or within jobs for a named job mapping.
- Prerequisites workflow on an example repository with main as default.
- Platforms github-actions, gitea-actions.
2. Copy the snippet
yaml
on: [workflow_dispatch]3. How it works
workflow_dispatch exposes a manual entry point. The workflow must also be discoverable on the default branch before dispatch can target a different ref.
4. Verify the result
Put the workflow on the default branch. Use Actions to start it on a selected ref.
Watch for. Place event filters at workflow scope and test an event that should run and an event that should be skipped.
Validation syntax-validated (YAML parse). Status definitions.