https://github.com/rekgrpth/github-repository-dispatch-shell-action
github repository dispatch shell action
https://github.com/rekgrpth/github-repository-dispatch-shell-action
action dispatch github repository shell
Last synced: 8 months ago
JSON representation
github repository dispatch shell action
- Host: GitHub
- URL: https://github.com/rekgrpth/github-repository-dispatch-shell-action
- Owner: RekGRpth
- License: mit
- Created: 2021-08-04T05:20:43.000Z (almost 5 years ago)
- Default Branch: v1
- Last Pushed: 2025-01-01T19:09:25.000Z (over 1 year ago)
- Last Synced: 2025-04-09T22:14:46.477Z (about 1 year ago)
- Topics: action, dispatch, github, repository, shell
- Language: Shell
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github repository dispatch shell action
## call github repository dispatch to definded repository
### usage
#### inside source repo workflow
```yml
steps:
- env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} # repository dispatch public repo access token, required
INPUTS_CLIENT_PAYLOAD: '{"repository":${{ toJson(github.event.repository.name) }}}' # repository dispatch client payload, required
INPUTS_EVENT_TYPE: latest # repository dispatch event type, required
INPUTS_REPOSITORY: ${{ github.repository_owner }}/${{ matrix.repo }} # repository dispatch repository, default: current workflow repository
uses: rekgrpth/github-repository-dispatch-shell-action@v1
strategy:
matrix:
repo:
- repo1
- repo2
- repo3
```
#### inside target repo workflow
```yml
on:
repository_dispatch:
```