-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a57a0db
Showing
7 changed files
with
29,080 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
*.iml | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Gitter notify - Github action | ||
|
||
A [GitHub Action](https://github.com/features/actions) to send github repository dispatch event. | ||
|
||
## Usage | ||
|
||
You can use this action after any other action. Here is an example setup of this action: | ||
|
||
1. Create a `.github/workflows/dispatch.yml` file in your GitHub repo. | ||
2. Add the following code to the `dispatch.yml` file. | ||
|
||
```yml | ||
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 | ||
``` | ||
3. You can create github personal access token with [this](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) steps. | ||
## Inputs | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'Repo Event Dispatch' | ||
description: 'Repo Event Dispatch - Github plugin' | ||
inputs: | ||
event-type: | ||
description: 'Repository dispatch event type' | ||
required: true | ||
token: | ||
description: 'Github personal access token (With repo scope)' | ||
required: true | ||
repository: | ||
description: 'Repository name to send dispatch event' | ||
required: true | ||
client-payload: | ||
description: 'Client payload (JSON) to send with dispatch event' | ||
required: false | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' | ||
branding: | ||
icon: 'external-link' | ||
color: 'gray-dark' |
Oops, something went wrong.