Skip to content
external-link

GitHub Action

Repo Event Dispatch

v1 Latest version

Repo Event Dispatch

external-link

Repo Event Dispatch

Repo Event Dispatch - Github plugin

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Repo Event Dispatch

uses: juztcode/repo-ditpatch-action@v1

Learn more about this action in juztcode/repo-ditpatch-action

Choose a version

Repository Dispatch - Github action

A GitHub Action to send github repository dispatch event.

Usage

You can use this action after any other action. Here is an example setup of this action:

  1. Create a .github/workflows/dispatch.yml file in your GitHub repo.
  2. Add the following code to the dispatch.yml file.
on: [push]

jobs:
  dispatch_event:
    runs-on: ubuntu-latest
    name: Dispatch event

    steps:
    - uses: juztcode/repo-ditpatch-action@v1
      with:
        event-type: test_event
        token: ${{ secrets.REPO_ACCESS_TOKEN }}
        repository: juztcode/repo-ditpatch-action
  1. You can create github personal access token with this steps.

Inputs

Input Purpose
event-type Repository dispatch event type.
token Github personal access token (With repo scope).
repository Repository name to send dispatch event.
client-payload Client payload (JSON) to send with dispatch event.