Skip to content

Update main.yml

Update main.yml #9

Workflow file for this run

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() }}