2024-06-22 15:36:01 +00:00
|
|
|
name: 'Update TTB-Network'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ '**' ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
steps:
|
|
|
|
- name: Trigger server refresh
|
|
|
|
uses: tyrrrz/action-http-request@master
|
|
|
|
with:
|
|
|
|
url: https://bangbang93.ttb-network.top:4000/refresh
|
|
|
|
- name: Response
|
|
|
|
run: |
|
|
|
|
echo "Status: ${{ steps.request.outputs.status }}"
|
|
|
|
echo "Body: ${{ steps.request.outputs.body }}"
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
steps:
|
|
|
|
- name: Trigger server pr notice
|
|
|
|
uses: tyrrrz/action-http-request@master
|
|
|
|
with:
|
|
|
|
url: https://bangbang93.ttb-network.top:4000/github/pulls
|
2024-06-22 15:38:35 +00:00
|
|
|
headers: |
|
2024-06-22 15:43:42 +00:00
|
|
|
Authorization: Bearer ${{ secrets.BANGBANG93_PR_TOKEN }}
|
2024-06-22 15:36:01 +00:00
|
|
|
- name: Response
|
|
|
|
run: |
|
|
|
|
echo "Status: ${{ steps.request.outputs.status }}"
|
|
|
|
echo "Body: ${{ steps.request.outputs.body }}"
|