Skip to content

Commit 926fab7

Browse files
committed
Try add repository_dispatch.
1 parent 9682974 commit 926fab7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/push.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1+
name: Build and Deploy
12
on:
23
- push
3-
4-
name: Build and Deploy
4+
- repository_dispatch:
5+
types: [slides-updated]
56

67
jobs:
78
build:
89
runs-on: ubuntu-latest
910
env:
1011
GH_TOKEN: ${{ github.token }}
1112
steps:
13+
# Show payload only for repository_dispatch
14+
- name: Show dispatch payload
15+
if: ${{ github.event_name == 'repository_dispatch' }}
16+
run: |
17+
echo "Event type: ${{ github.event.action || 'N/A' }}"
18+
echo "Client payload (JSON):"
19+
echo '${{ toJson(github.event.client_payload) }}'
1220
- name: Set timezone
1321
uses: szenius/[email protected]
1422
with:

0 commit comments

Comments
 (0)