添加 GitHub Actions 工作流以触发后端构建

This commit is contained in:
远野千束 2025-01-03 21:41:23 +08:00
parent b0c7f59ecf
commit 09ecd746e8

18
.github/workflows/build-trigger.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Trigger Backend Workflow
on:
push:
branches:
- main
jobs:
trigger-backend:
runs-on: ubuntu-latest
steps:
- name: Trigger backend workflow
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GHP }}" \
https://api.github.com/repos/snowykami/server-status-server/dispatches \
-d '{"event_type":"trigger-backend-workflow"}'