add repo-dispatch action with test #4
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 so we can use local action | |
| uses: actions/checkout@v4 | |
| - name: test action | |
| uses: ./.github/actions/repo-dispatch | |
| with: | |
| secret-token: my-secret-token | |
| another-secret: my-other-secret |