todo test-repo-dispatch-listener #15
This file contains hidden or 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
| # 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" | |
| } |