on-demand-test-event #2
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
| name: Repository Dispatch Example | |
| on: | |
| repository_dispatch: | |
| types: [on-demand-test-event] | |
| jobs: | |
| get-info-from-event: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get info from event | |
| env: | |
| GITHUB_CONTEXT: ${{ toJson(github) }} | |
| run: | | |
| echo "Repository dispatch event received!" | |
| echo "$GITHUB_CONTEXT" | |
| - name: Send greeting | |
| run: | | |
| echo "Hello, ${{ github.event.client_payload.value1 }}!" | |
| echo "and Hello there ${{ github.event.client_payload.value2 }}." | |
| echo "Oh hello there ${{ github.event.client_payload.value3 }}" |