A GitHub Action to send github repository dispatch event.
You can use this action after any other action. Here is an example setup of this action:
- Create a
.github/workflows/dispatch.ymlfile in your GitHub repo. - Add the following code to the
dispatch.ymlfile.
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- You can create github personal access token with this steps.
| 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. |