Skip to content

Commit

Permalink
Switch env vars passing to use -e args instead of --env-file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Jul 27, 2024
1 parent e7a2c04 commit 2d0d9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 2d0d9c5

Please sign in to comment.