forked from ChrisChrome/weather-bot
First try at runners on forgejo
This commit is contained in:
parent
177f2c8dc3
commit
ea8c2be4a1
15
.forgejo/workflows/ptero-push.yml
Normal file
15
.forgejo/workflows/ptero-push.yml
Normal 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"}'
|
Loading…
Reference in a new issue