-
Notifications
You must be signed in to change notification settings - Fork 44
58 lines (56 loc) · 2.4 KB
/
deploy.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy
on:
push:
branches: [ 'main' ]
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Refresh tags and categories for the Solodit
id: refreshRequest
uses: fjogeleit/http-request-action@v1.14.0
with:
url: https://solodit.xyz/api/general/refresh_tag_category/
method: POST
customHeaders: '{"Content-Type": "application/x-www-form-urlencoded"}'
data: '{"email": "${{ secrets.SOLODIT_USER }}", "password": "${{ secrets.SOLODIT_PASSWORD }}"}'
- name: Show Response of Refreshing Tags and Categories
run: |
echo ${{ steps.refreshRequest.outputs.response }}
echo ${{ steps.myRequest.outputs.headers }}
- name: Refresh protocol fork information
id: refreshForkInfoRequest
uses: fjogeleit/http-request-action@v1.14.0
with:
url: https://solodit.xyz/api/general/refresh_forked_protocol/
method: POST
customHeaders: '{"Content-Type": "application/x-www-form-urlencoded"}'
data: '{"email": "${{ secrets.SOLODIT_USER }}", "password": "${{ secrets.SOLODIT_PASSWORD }}"}'
- name: Show Response of Refreshing Protocol Fork Informations
run: |
echo ${{ steps.refreshForkInfoRequest.outputs.response }}
echo ${{ steps.myRequest.outputs.headers }}
- name: Import reports
id: importReportRequest
uses: fjogeleit/http-request-action@v1.14.0
with:
url: https://solodit.xyz/api/general/import_reports/
method: POST
customHeaders: '{"Content-Type": "application/x-www-form-urlencoded"}'
data: '{"email": "${{ secrets.SOLODIT_USER }}", "password": "${{ secrets.SOLODIT_PASSWORD }}"}'
- name: Show Response of Importing Reports
run: |
echo ${{ steps.importReportRequest.outputs.response }}
echo ${{ steps.myRequest.outputs.headers }}
- name: Refresh bug bounties
id: refreshBugBounties
uses: fjogeleit/http-request-action@v1.14.0
with:
url: https://solodit.xyz/api/general/refresh_bug_bounties/
method: POST
customHeaders: '{"Content-Type": "application/x-www-form-urlencoded"}'
data: '{"email": "${{ secrets.SOLODIT_USER }}", "password": "${{ secrets.SOLODIT_PASSWORD }}"}'
- name: Show Response of Refreshing Bug bounties
run: |
echo ${{ steps.refreshBugBounties.outputs.response }}
echo ${{ steps.myRequest.outputs.headers }}