discord-bot/.forgejo/workflows/ptero-push.yml
Christopher Cookman 6c9465eb50
Some checks failed
ptero-push / build (push) Has been cancelled
Guh
2025-05-27 20:37:45 -06:00

15 lines
613 B
YAML

# Workflow that runs on `chris-runner`, tells a pterodactyl server at https://panel.chrischro.me/ to restart server 8f44f1fd-8d29-4553-96f1-05dacfca454f with token stored in PTERO_KEY
name: ptero-push
on:
push:
branches:
- main
jobs:
build:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run script
run: |
curl -X POST -H "Authorization: Bearer ${{ secrets.PTERO_KEY }}" -H "Content-Type: application/json" https://panel.chrischro.me/api/client/servers/5e938271-1d7a-4db0-8687-deee89c28b05/power -d '{"signal":"restart"}'