Skip to content

hello-event

hello-event #2

Workflow file for this run

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) }}"