From c624a0bfe5e5b73e1b92d4b0ad652775acfe2bfb Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Tue, 20 Feb 2024 18:05:00 -0600 Subject: [PATCH] Add logic to prefix container working directory to paths to copy --- .github/workflows/check-submission.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-submission.yml b/.github/workflows/check-submission.yml index ff45460..b0dee5a 100644 --- a/.github/workflows/check-submission.yml +++ b/.github/workflows/check-submission.yml @@ -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 .