26 lines
509 B
YAML
26 lines
509 B
YAML
name: Trigger pull & rebuild
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
release:
|
|
types: [created]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
post:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Send POST request
|
|
run: |
|
|
curl -X POST \
|
|
-H "Content-Type: application/json" \
|
|
-H "Authorization: Bearer ${{ secrets.BUILD_SERVER }}" \
|
|
-d '{"action": "restart", "script":"website"}' \
|
|
https://build.alexav.gg/power
|