Skip to content

Commit a92c3a8

Browse files
authored
Update push-aur.yml
1 parent 11b6dcb commit a92c3a8

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/push-aur.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
name: Receive Hello from A
2+
13
on:
24
repository_dispatch:
3-
types: [sync-version]
5+
types: [hello-event] # 必须匹配 A 发的事件类型
46

57
jobs:
6-
update:
8+
print-hello:
79
runs-on: ubuntu-latest
810
steps:
9-
- name: Show received payload
11+
- name: Print the received hello message
1012
run: |
11-
echo "Full payload: ${{ toJSON(github.event.client_payload) }}"
12-
echo "Greeting : ${{ github.event.client_payload.greeting }}" # 输出 "hello"
13-
echo "Version : ${{ github.event.client_payload.version }}"
13+
echo "Received dispatch event!"
14+
echo "Message from A: ${{ github.event.client_payload.message }}"
15+
echo "Full payload:"
16+
echo "${{ toJSON(github.event.client_payload) }}"

0 commit comments

Comments
 (0)