Merge branch 'master' of https://github.com/azpha/website
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
name: Trigger pull & rebuild
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
post:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Send POST request
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.PTERO_SECRET }}" \
|
||||||
|
-d '{"signal": "restart"}' \
|
||||||
|
https://panel.thatalex.dev/api/client/servers/457f4d77/power
|
||||||
Reference in New Issue
Block a user