hello-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: Receive Hello from A | |
| on: | |
| repository_dispatch: | |
| types: [hello-event] # 必须匹配 A 发的事件类型 | |
| jobs: | |
| print-hello: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Print the received hello message | |
| run: | | |
| echo "Received dispatch event!" | |
| echo "Message from A: ${{ github.event.client_payload.message }}" | |
| echo "Full payload:" | |
| echo "${{ toJSON(github.event.client_payload) }}" |