File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 5858 echo "::set-output name=composer_major_version::${DETECTED_MAJOR_VERSION}"
5959 echo "::set-output name=composer_version::${DETECTED_VERSION}"
6060
61+ COMPOSER_DOCKER="docker run --rm --user 1001 --volume ${RUNNER_WORKSPACE}/composer:/tmp --volume ${GITHUB_WORKSPACE}:/app -w /app composer:${COMPOSER_VERSION}"
6162 if [ "$GITHUB_OAUTH" ]; then
62- docker run --rm --volume ${RUNNER_WORKSPACE}/composer:/tmp \
63- composer:${COMPOSER_VERSION} config -g github-oauth.github.com $GITHUB_OAUTH
63+ $COMPOSER_DOCKER config -g github-oauth.github.com $GITHUB_OAUTH
6464 fi
6565
6666 case "${COMPOSER_COMMAND}" in
7070
7171 *)
7272 echo "Running composer v${DETECTED_VERSION} with: $COMPOSER_COMMAND $COMPOSER_ARGS"
73- docker run --rm \
74- --volume ${RUNNER_WORKSPACE}/composer:/tmp \
75- --volume ${GITHUB_WORKSPACE}:/app \
76- -w /app \
77- composer:${COMPOSER_VERSION} $COMPOSER_COMMAND $COMPOSER_ARGS
73+ $COMPOSER_DOCKER $COMPOSER_COMMAND $COMPOSER_ARGS
7874 ;;
7975 esac
8076
You can’t perform that action at this time.
0 commit comments