Skip to content
at-sign

GitHub Action

Broadcast event

v1.0.0 Latest version

Broadcast event

at-sign

Broadcast event

An action to broadcast an event to all repositories of an organization

Installation

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

              

- name: Broadcast event

uses: geofjamg/[email protected]

Learn more about this action in geofjamg/broadcast-event

Choose a version

Broadcast event

Github Action to broadcast an event to all other repositories using repository dispatch event.

Inputs

token (required)

A repo scoped GitHub Personal Access Token.

event-type (required)

A custom event type.

Example usage

Here is an example how to broadcast an event:

uses: geofjamg/[email protected]
with:
  token: ${{ secrets.REPO_ACCESS_TOKEN }}
  event-type: my-event

Here is an example how to trigger a workflow from a repository dispatch event:

name: On event workflow

on:
  repository_dispatch:
    types: my-event

jobs:

License

Apache 2.0