Skip to content

gridsuite/broadcast-event

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%