ssh-action icon indicating copy to clipboard operation
ssh-action copied to clipboard

Store artifacts

Open sgurlt opened this issue 5 years ago • 6 comments

Hey,

is there a way to create artifacts while connected via ssh?

sgurlt avatar Mar 02 '20 13:03 sgurlt

I would like this as well, or just some way to get the output of the SSH commands back to the container running the github action

jbnjohnathan avatar Sep 02 '20 08:09 jbnjohnathan

Can you describe any scenario?

appleboy avatar Sep 02 '20 15:09 appleboy

Looking for the same thing as well...

Like your example:

script: |
  whoami

Is it possible to do:

-name: Who
  id: who
  script: |
    echo "::set-output name=id::$(whoami)"
-name: Print
  run: echo ${{ steps.who.outputs.id }}

Currently trying it and it does run the command but no output id provided on the print step.

TheGrandWazoo avatar Sep 03 '20 00:09 TheGrandWazoo

Yeah for me I would also like to capture output from the SSH session to use as input to other scripts I will run in the github action container. The solution I had to do now was to run SSH "manually" like this echo ::set-env name=MYENV::$(ssh -i mykey.key -o StrictHostKeyChecking=no user@hostname "whoami")

jbnjohnathan avatar Sep 03 '20 14:09 jbnjohnathan

Was any solution found for this issue/scenario, where we can share info or file from server to artifacts of github?

haidertm avatar Dec 10 '21 14:12 haidertm