From e57bb6ed8a4623eab80ad339c01774067fe75070 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sun, 22 Mar 2020 12:24:42 +0100 Subject: [PATCH] workflows: mount cwd in container --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7444fd6..1011181 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: docker build -t host -f Dockerfile.test . docker build -t action -f Dockerfile . docker run -d --name host -e SSH_PUBLIC_KEY="${{secrets.SSH_PUBLIC_KEY}}" host - docker run -t --name action --link host -e INPUT_PLAYBOOK=playbook.yml -e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" action + docker run -t --name action --link host -v $PWD:/wd -w /wd -e INPUT_PLAYBOOK=playbook.yml -e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" action - name: Test local uses: ./ with: