Github Action saving output, but output is not available on another step #145592
Replies: 1 comment
-
The solution was that I had to give the action an id and map the output: appleboy/ssh-action@40c4aad |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working on adding optional stdout capturing to a community action: appleboy/ssh-action#287. I updated the script to capture the output with a heredoc:
The workflow uses the local action and attempts to print the output:
It ran fine with nektos act, but for some reason it wasn't showing on github. I enabled debug mode and ran it again to confirm that it is saving the output:
You can see that it is being stored but the next step is evaluating the variable to null. Am I doing something wrong here?
Beta Was this translation helpful? Give feedback.
All reactions