First try at runners on forgejo

This commit is contained in:
Christopher Cookman 2024-06-18 20:53:22 -06:00
parent 177f2c8dc3
commit ea8c2be4a1
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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"}'