Skip to content

todo test-repo-dispatch-listener #15

todo test-repo-dispatch-listener

todo test-repo-dispatch-listener #15

# This workflow tests the reusable repo-dispatch action
name: test repo-dispatch action
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: checkout in order to use local action
uses: actions/checkout@v7
- name: test the repo-dispatch action (and usage example)
uses: ./.github/actions/repo-dispatch
with:
secret-token: ${{ secrets.personal_access_token }}
target-repo-name: ${{ github.event.repository.name }}
target-repo-owner: ${{ github.repository_owner }}
event-type: my-custom-event-type
client-payload: |
{
"my-key": "my-value"
}