gridsuite / broadcast-event

Apache License 2.0
0 stars 1 forks source link

Broadcast event

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

Inputs

token (required)

A repo scoped GitHub Personal Access Token.

organizations (optional)

A list of organizations separated by a white space to send the event in addition to current organization.

event-type (required)

A custom event type.

Example usage

Here is an example how to broadcast an event:

uses: gridsuite/broadcast-event@main
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:

Build

This project results from the following github documentation : https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github

To compile this project type

npm i -g @vercel/ncc
ncc build index.js

Then commit app.yml and dist/index.js files

License

Apache 2.0