Skip to content

Commit

Permalink
fix: propagate variables to container
Browse files Browse the repository at this point in the history
  • Loading branch information
RedlineTriad committed Nov 13, 2022
1 parent 088a7c5 commit f569e0e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ inputs:
runs:
using: composite
steps:
- run: docker run -v $(pwd)/:${{ github.workspace }} ${{ inputs.image }}
- run: >
docker run
-v $(pwd)/:${{ github.workspace }}
-e "ANSIBLE_ASYNC_DIR=/tmp/.ansible_async"
-e "ANSIBLE_FORCE_COLOR=1"
-e "INPUT_MOLECULE_OPTIONS=${{ inputs.molecule_options }}"
-e "INPUT_MOLECULE_COMMAND=${{ inputs.molecule_command }}"
-e "INPUT_MOLECULE_ARGS=${{ inputs.molecule_args }}"
-e "INPUT_MOLECULE_WORKING_DIR=${{ inputs.molecule_working_dir }}"
${{ inputs.image }}
shell: bash
env:
ANSIBLE_ASYNC_DIR: "/tmp/.ansible_async"
ANSIBLE_FORCE_COLOR: "1"
INPUT_MOLECULE_OPTIONS: ${{ inputs.molecule_options }}
INPUT_MOLECULE_COMMAND: ${{ inputs.molecule_command }}
INPUT_MOLECULE_ARGS: ${{ inputs.molecule_args }}
INPUT_MOLECULE_WORKING_DIR: ${{ inputs.molecule_working_dir }}

0 comments on commit f569e0e

Please sign in to comment.