diff --git a/Dockerfile b/Dockerfile index fbb5029..18702cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,7 @@ ARG INPUT_GITHUB_TOKEN ARG INPUT_EDITORCONFIG ARG INPUT_DEPENDABOT -RUN composer global require \ - dragon-code/codestyler:^1.0 \ - symfony/thanks - -RUN composer global config --no-plugins allow-plugins.symfony/thanks true -RUN composer config --no-plugins allow-plugins.symfony/thanks true +RUN composer global require dragon-code/codestyler:^1.0 COPY shell /shell COPY entrypoint.sh /entrypoint.sh diff --git a/shell/thanks.sh b/shell/thanks.sh index 2f6a389..d42b846 100644 --- a/shell/thanks.sh +++ b/shell/thanks.sh @@ -1,7 +1,13 @@ #!/bin/sh -l +composer global require symfony/thanks + +composer global config --no-plugins allow-plugins.symfony/thanks true + composer global thanks -#if [[ -f "./composer.json" ]]; then -# composer thanks -#fi +if [[ -f "./composer.json" ]]; then + composer config --no-plugins allow-plugins.symfony/thanks true + + composer thanks +fi