diff --git a/.forgejo/workflows/ptero-push.yml b/.forgejo/workflows/ptero-push.yml new file mode 100644 index 0000000..e621d47 --- /dev/null +++ b/.forgejo/workflows/ptero-push.yml @@ -0,0 +1,15 @@ +# 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: chris-runner + 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/8f44f1fd-8d29-4553-96f1-05dacfca454f/power -d '{"signal":"restart"}' \ No newline at end of file