chore: only triggered when docs change

This commit is contained in:
Kbscript
2025-04-07 17:21:38 +08:00
parent a05f291ec7
commit 05dd84148c

View File

@@ -2,8 +2,8 @@ name: Trigger Website Build
on:
push:
branches:
- main
paths:
- 'docs/**'
workflow_dispatch:
jobs:
@@ -19,4 +19,4 @@ jobs:
-H "Authorization: Bearer ${{ secrets.WEBSITE_TRIGGER_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/galacean/website/dispatches \
-d '{"event_type": "engine_update"}'
-d '{"event_type": "engine_update","client_payload": {"engine_commit": "${{ github.event.head_commit.message }}"}}'