Skip to content

Copying test file from docker container to GitHub repository #26791

Answered by tdalvi
tdalvi asked this question in Actions
Discussion options

You must be logged in to vote

@brightran @airtower-luna Thank you both for the suggestions. I managed to solve this issue last Sunday. Here is what I did. After the test run was complete and the test file created on the container, I ran the command “docker cp name of container:/path/to/testfile/TestResults.html .”.  In case it is not obvious, there is a “.” at the end of that statement. This copied my test file from the container to the location “/home/runner/work/myrepo/myrepo”. Then, in the next step I used the upload artifact as @airtower-luna suggested. For the “Path”, I entered “./TestResults.html”. The file was uploaded as an artifact.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants