Github Action to broadcast an event to all other unarchived repositories using repository dispatch event.
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.
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:
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