Skip to content

Update README.md

Update README.md #84

Workflow file for this run

name: Restart Creatable Server
on: [ push ]
jobs:
update-server:
runs-on: ubuntu-latest
env:
apiKey: ${{secrets.PTERODACTYL_PANEL_API_KEY}}
id: ${{secrets.SERVER_ID}}
steps:
- name: Restart server
run: |
curl "https://host.snaildos.com/api/client/servers/${{secrets.SERVER_ID}}/power" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${{secrets.PTERODACTYL_PANEL_API_KEY}}' \
-X POST \
-d '{
"signal": "restart"
}'