Skip to content

Commit

Permalink
Add logic to prefix container working directory to paths to copy
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Feb 21, 2024
1 parent 3b7d439 commit c624a0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ jobs:
run: |
stuff_to_copy="${{ inputs.build-artifacts }}"
container_id=$(docker create "${{ steps.repo2docker.outputs.IMAGE_SHA_NAME }}")
docker start "${container_id}"
container_working_dir=$(docker exec "$container_id" pwd)
for file_or_dir in $stuff_to_copy
do
docker cp ${container_id}:${file_or_dir} ./${file_or_dir}
docker cp ${container_id}:${container_working_dir}/${file_or_dir} ./${file_or_dir}
done
docker rm --verbose ${container_id}
ls -ltr .
Expand Down

0 comments on commit c624a0b

Please sign in to comment.