Learn more about our ✨ new ✨ native MCP
Directus Logo
  • Use Cases and Features
    • Headless CMS
      Manage and deliver content with ease
    • Backend-as-a-Service
      Build and ship applications faster
    • Headless Commerce
      A single source of truth for products
    • 100+ More Use Cases
      Build anything (or everything)
    • Instant APIs
      Connect a database, get REST + GraphQL APIs
    • Granular Policy-Based Auth
      Provide secure, autonomous data access
    • Visual Automation Builder
      Automate content and data workflows with ease
    • 50+ More Features
      Get everything you need out-of-the-box
    Project Showcase
    Built With Directus

    Built With Directus

    See what everyone's been building with Directus

  • Learn More
    • Blog
      Read our latest articles and guides
    • Case Studies
      Case studies and success stories
    • Community
      Join our new community forum.
    • Agency Directory
      Browse our list of agency partners
    • About Us
      Learn more about Directus and the team
    • Wall of Love
      See what others are saying about us
    • Contact
      Have a general inquiry or question for us?
    • Support
      Reach out to Directus support
    Watch Directus TV
    Directus TV
    Video

    Directus TV

    Go down the rabbit hole with hours of original video content from our team.

  • Developers
  • Enterprise
  • Pricing
Book a DemoGet StartedLog In
Directus Marketplace
Marketplace
  1. Extensions
  2. Integrations
  3. Templates
Back to Extensions
operation

GitHub Operation

An Operation to allow Flows to send a webhook request to start GitHub Action

GitHub Operation

An operation that lets Flows trigger GitHub Actions using the repository_dispatch event.

Configuration

  • Owner: GitHub user or organization name
  • Repository: Target repository name
  • Access Token: GitHub token with appropriate permissions
  • Event type: Custom event name for workflow filtering
  • Client Payload : JSON data passed to your workflow

Flow-Authentication

[!IMPORTANT] Directus Flows can be triggered publicly by default. Add authentication operations if needed.

Github Setup

  1. Create a GitHub Access Token
  2. Add a workflow to your repository
  3. Create your directus flow

Example Workflow

#FILE: .github/workflows/example.yml

name: Directus Dispatched Action

on:
  repository_dispatch:
    # Specify the event types on which the flow should be triggered
    types: [example_event]

jobs:
  example:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      # Echo the event name
      - env:
          ACTION: ${{ github.event.action }}
        run: echo $ACTION

      # Echo the Payload
      - env:
          PAYLOAD: ${{ toJSON(github.event.client_payload) }}
        run: echo $PAYLOAD

@directus-labs/github-operation

npm i @directus-labs/github-operation
This extension is sandboxed and can be installed through the Directus Marketplace. Learn more.
Mike Elsmore
Mike Elsmore
Verified
1.0.0
Works with v10.10.0+ or v11.0.0+
Updated 8 months ago
MIT License
66.0 KiB (4 files)
npm
  • Directus LogoDirectus Logo

    A composable backend to build your Headless CMS, BaaS, and more. 

  • Solutions
    • Headless CMS
    • Backend-as-a-Service
    • Product Information
    • 100+ Things to Build
  • Resources
    • Documentation
    • Guides
    • Community
    • Release Notes
  • Support
    • Issue Tracker
    • Feature Requests
    • Community Chat
    • Cloud Dashboard
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2025 Monospace Inc
  • Cloud Policies
  • License
  • Terms
  • Privacy