Open
Description
I want to run an ssh script that returns a value -> res=$(ssh USER@HOST "echo 'test'")
Is this possible?
name: variable test
on: push
jobs:
prisma-migrate:
runs-on: ubuntu-latest
steps:
- name: set variable from remote host
id: var
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY}}
script: |
value="test"
echo ::set-output name=res::"$value"
- name: test postgres_cluster
run: echo "${{ steps.var.outputs.res }}"