File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 132
132
echo " Command: $command_string " >> output.log 2>&1
133
133
mkdir -p /tmp/composer-cache
134
134
135
- docker_env=/tmp/docker_env
136
- printenv > $docker_env
137
- cat $docker_env
138
- echo COMPOSER_CACHE_DIR=" /tmp/composer-cache" >> $docker_env
135
+ export COMPOSER_CACHE_DIR=" /tmp/composer-cache"
139
136
140
137
docker run --rm \
141
138
--volume " ${github_action_path} /composer.phar" :/usr/local/bin/composer \
@@ -144,7 +141,7 @@ docker run --rm \
144
141
--volume " ${GITHUB_WORKSPACE} " :/app \
145
142
--volume " /tmp/composer-cache" :/tmp/composer-cache \
146
143
--workdir /app \
147
- --env-file " $docker_env " \
144
+ --env-file <( env | cut -f1 -d= ) \
148
145
${docker_tag} ${command_string}
149
146
150
147
echo " ::set-output name=full_command::${command_string} "
You can’t perform that action at this time.
0 commit comments