Skip to content

RekGRpth/github-repository-dispatch-shell-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github repository dispatch shell action

call github repository dispatch to definded repository

usage

inside source repo workflow

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

on:
  repository_dispatch: