Skip to content

Update hyva-stage.yml #2

Update hyva-stage.yml

Update hyva-stage.yml #2

Workflow file for this run

name: hyva-stage-deploy-test
on:
workflow_dispatch:
inputs:
current-branch:
description: "Please give a custom branch to deploy"
required: false
pull_request:
branches:
- hyva-stage
types:
- closed
jobs:
deployment-job:
name: Hyva Stage Deploy
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Set Default Value if Not Provided

Check failure on line 23 in .github/workflows/hyva-stage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/hyva-stage.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
run: echo "custom_branch=${{ github.event.inputs.current-branch || '' }}" >> $GITHUB_ENV
- name: SSH into the machine and run some commands
uses: appleboy/ssh-action@master
with:
host: 3.221.225.1
username: sigosigns
key: ${{ secrets.SH_SSH_BLD }}
port: 22
script: |
cd /home/sigosigns/build/capistrano
echo "Running deployment script on the server"
CUSTOM_BRANCH=${custom_branch} cap staging deploy