mirror of
https://github.com/snowykami/server-status-web.git
synced 2025-06-04 14:15:23 +00:00
✨ 添加 GitHub Actions 工作流以触发后端构建
This commit is contained in:
parent
b0c7f59ecf
commit
09ecd746e8
18
.github/workflows/build-trigger.yml
vendored
Normal file
18
.github/workflows/build-trigger.yml
vendored
Normal 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"}'
|
Loading…
x
Reference in New Issue
Block a user