Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-how-tos-write-workflows-triggering-a-workflow-github-docs-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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