We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11b6dcb commit a92c3a8Copy full SHA for a92c3a8
1 file changed
.github/workflows/push-aur.yml
@@ -1,13 +1,16 @@
1
+name: Receive Hello from A
2
+
3
on:
4
repository_dispatch:
- types: [sync-version]
5
+ types: [hello-event] # 必须匹配 A 发的事件类型
6
7
jobs:
- update:
8
+ print-hello:
9
runs-on: ubuntu-latest
10
steps:
- - name: Show received payload
11
+ - name: Print the received hello message
12
run: |
- echo "Full payload: ${{ toJSON(github.event.client_payload) }}"
- echo "Greeting : ${{ github.event.client_payload.greeting }}" # 输出 "hello"
13
- echo "Version : ${{ github.event.client_payload.version }}"
+ 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