-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 859 Bytes
/
main.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
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Send Deploy Request
id: deploy
uses: fjogeleit/http-request-action@v1
with:
url: 'https://alitayyeb.ir/deploy-from-git'
method: 'POST'
# timeout: 5000
customHeaders: '{"Authorization": "${{ secrets.DEPLOY_KEY }}"}'
- name: Print Deploy Response
run: |
echo ${{ fromJson(steps.deploy.outputs.response).detail }}
echo ${{ fromJson(steps.deploy.outputs.response).stdout }}
echo ${{ fromJson(steps.deploy.outputs.response).stderr }}
# - name: The job has failed
- if: ${{ failure() || !fromJSON(steps.deploy.outputs.response.success)}}
run: exit 1
# - name: The job has succeeded
# if: ${{ success() }}