Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store artifacts #38

Open
sgurlt opened this issue Mar 2, 2020 · 6 comments
Open

Store artifacts #38

sgurlt opened this issue Mar 2, 2020 · 6 comments

Comments

@sgurlt
Copy link

sgurlt commented Mar 2, 2020

Hey,

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

@jbnjohnathan
Copy link

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

@appleboy
Copy link
Owner

appleboy commented Sep 2, 2020

Can you describe any scenario?

@TheGrandWazoo
Copy link

TheGrandWazoo commented Sep 3, 2020

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.

@jbnjohnathan
Copy link

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")

@haidertm
Copy link

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

@BoberMod
Copy link

I need to store output from the SSH session and post it into GitHub PR comments later.
Can I archive that with this GH Action?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants