From 2d0d9c5620d678396fa3c1f1fc19d83af3ab48a6 Mon Sep 17 00:00:00 2001 From: Cliffano Subagio Date: Sat, 27 Jul 2024 13:01:38 +1000 Subject: [PATCH] Switch env vars passing to use -e args instead of --env-file. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7070c43..c012805 100644 --- a/action.yml +++ b/action.yml @@ -34,4 +34,4 @@ runs: - name: Run Docker container on the GitHub Workspace directory shell: sh run: | - cd $GITHUB_WORKSPACE && docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v .:/opt/workspace/ --env-file <(env) --name local_container local_image:8.8.8 "${{ inputs.command }}" + cd $GITHUB_WORKSPACE && docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v .:/opt/workspace/ $(env | cut -f1 -d= | sed 's/^/-e /') --name local_container local_image:8.8.8 "${{ inputs.command }}"