github · GitHub Actions Docs
Actions Triggering a workflow - GitHub Docs
Explains the various event types and syntax used to initiate GitHub Actions workflows, including manual triggers, push events, pull request events, and scheduled cron jobs.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Triggering a workflow - GitHub Docs
Explains the various event types and syntax used to initiate GitHub Actions workflows, including manual triggers, push events, pull request events, and scheduled cron jobs.
When To Use
Use when you need to configure specific events, such as code pushes, pull requests, or schedules, to automatically start a GitHub Actions workflow.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-workflow-guide.md | A guide explaining the various event types and methods used to automatically trigger GitHub Actions workflows. | Questions about a guide explaining the various event types and methods used to automatically trigger GitHub Actions workflows. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github.text | A YAML workflow configuration that triggers on an issue being opened to automatically add a triage label using the GitHub CLI. | Exact payloads, commands, or snippets shown in A YAML workflow configuration that triggers on an issue being opened to automatically add a triage label using the Gi... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-2.text | A YAML workflow configuration that triggers on an issue event to automatically add a triage label using the GitHub CLI. | Exact payloads, commands, or snippets shown in A YAML workflow configuration that triggers on an issue event to automatically add a triage label using the GitHub CLI. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-3.text | A YAML-formatted workflow configuration demonstrating how to trigger a GitHub Actions workflow using the push event. | Exact payloads, commands, or snippets shown in A YAML-formatted workflow configuration demonstrating how to trigger a GitHub Actions workflow using the push event. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-4.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using push and fork events. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using push and fork events. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-5.text | A YAML configuration snippet demonstrating how to use the on keyword to trigger workflows based on specific events like push and label changes. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to use the on keyword to trigger workflows based on specific events li... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-6.text | A YAML workflow configuration demonstrating how to trigger a workflow using the on label event type. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to trigger a workflow using the on label event type. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-7.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow when an issue is opened or labeled. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow when an issue is opened or labeled. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-8.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the on: push event for specific branches. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the on: push event for spec... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-9.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the pull_request event with specific branch patterns. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the pullrequest event with... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-10.text | A YAML-style text example demonstrating how to use the 'on: pull_request' trigger with branch exclusion patterns in GitHub Actions. | Exact payloads, commands, or snippets shown in A YAML-style text example demonstrating how to use the 'on: pullrequest' trigger with branch exclusion patterns in Gi... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-11.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using pull request events with branch filter patterns. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using pull request events with br... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-12.text | A YAML configuration snippet demonstrating how to trigger GitHub Actions workflows using specific branch and tag patterns under the on: push key. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger GitHub Actions workflows using specific branch and tag patt... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-13.text | A YAML configuration example demonstrating how to use the on: push trigger with branch and tag ignore patterns. | Exact payloads, commands, or snippets shown in A YAML configuration example demonstrating how to use the on: push trigger with branch and tag ignore patterns. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-14.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using specific branch push patterns and exclusions. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using specific branch push patter... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-15.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the on: push event with specific path filters. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the on: push event with spe... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-16.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow on a push event while ignoring changes in the docs directory. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow on a push event while ignoring ch... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-17.text | A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the on: push event with specific path inclusions and exclusions. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a GitHub Actions workflow using the on: push event with spe... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-18.text | A YAML configuration snippet demonstrating how to trigger a workflow using the workflow_run event for a specific workflow. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a workflow using the workflowrun event for a specific workf... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-19.text | A YAML configuration snippet demonstrating how to trigger a workflow using the workflow_run event with specific branch exclusions. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a workflow using the workflowrun event with specific branch... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-20.text | A YAML configuration snippet demonstrating how to trigger a workflow using the workflow_run event with specific branch filters. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to trigger a workflow using the workflowrun event with specific branch... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-21.text | A YAML configuration example demonstrating how to trigger a GitHub Actions workflow using the workflow_dispatch event with custom inputs. | Exact payloads, commands, or snippets shown in A YAML configuration example demonstrating how to trigger a GitHub Actions workflow using the workflowdispatch event... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-22.text | A YAML workflow example that prints the full GitHub event context to the logs when triggered. | Exact payloads, commands, or snippets shown in A YAML workflow example that prints the full GitHub event context to the logs when triggered. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-23.text | A YAML configuration demonstrating how to trigger a GitHub Actions workflow on specific pull request events and file path changes. | Exact payloads, commands, or snippets shown in A YAML configuration demonstrating how to trigger a GitHub Actions workflow on specific pull request events and file... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-24.text | A GitHub Actions workflow configuration that triggers when an issue is labeled with 'bug'. | Exact payloads, commands, or snippets shown in A GitHub Actions workflow configuration that triggers when an issue is labeled with 'bug'. |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-25.text | A YAML-formatted workflow configuration demonstrating how to trigger actions using specific event types for issues and pull requests. | Exact payloads, commands, or snippets shown in A YAML-formatted workflow configuration demonstrating how to trigger actions using specific event types for issues an... |
examples/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-github-26.text | A YAML-formatted workflow configuration demonstrating how to trigger a job sequence using the on: push event for the main branch. | Exact payloads, commands, or snippets shown in A YAML-formatted workflow configuration demonstrating how to trigger a job sequence using the on: push event for the... |
What This Skill Covers
-
- GitHub Actions / - How-tos / - Write workflows / - Choose when workflows run / - Trigger a workflow
- Main sections:
In this article,Prerequisites,Triggering a workflow from a workflow,Using events to trigger workflows,Using a single event.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow
