-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (33 loc) · 1.02 KB
/
ttb-workflows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
headers: |
Authorization: Bearer ${{ secrets.BANGBANG93_PR_TOKEN }}
- name: Response
run: |
echo "Status: ${{ steps.request.outputs.status }}"
echo "Body: ${{ steps.request.outputs.body }}"