We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8805cce + a81bdc9 commit 03bc649Copy full SHA for 03bc649
composer-action.bash
@@ -131,7 +131,9 @@ fi
131
132
if [ -n "$ACTION_MEMORY_LIMIT" ]
133
then
134
- command_string="COMPOSER_MEMORY_LIMIT=$ACTION_MEMORY_LIMIT $command_string"
+ memory_limit="--env COMPOSER_MEMORY_LIMIT=$ACTION_MEMORY_LIMIT"
135
+else
136
+ memory_limit=''
137
fi
138
139
echo "Command: $command_string" >> output.log 2>&1
@@ -149,6 +151,7 @@ docker run --rm \
149
151
--volume "/tmp/composer-cache":/tmp/composer-cache \
150
152
--workdir /app \
153
--env-file <( env| cut -f1 -d= ) \
154
+ ${memory_limit} \
155
${docker_tag} ${command_string}
156
157
echo "::set-output name=full_command::${command_string}"
0 commit comments