diff --git a/Dockerfile b/Dockerfile index 9a679b7..b18fbaa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ ENV COMPOSER_ALLOW_SUPERUSER 1 RUN curl -sS https://getcomposer.org/installer | php \ && mv composer.phar /usr/local/bin/composer -RUN composer require 'staabm/annotate-pull-request-from-checkstyle:1.*' +RUN composer global require 'staabm/annotate-pull-request-from-checkstyle:1.*' +ENV PATH /root/.composer/vendor/bin:$PATH ADD action-entrypoint.sh /usr/local/bin diff --git a/action-entrypoint.sh b/action-entrypoint.sh index 3eac53f..f8c6924 100755 --- a/action-entrypoint.sh +++ b/action-entrypoint.sh @@ -13,4 +13,4 @@ FLAGS=() IFS=";" read -r -a FILES <<< "$CS2PR_FILES" -vendor/bin/cs2pr "${FLAGS[@]}" "${FILES[@]}" +cs2pr "${FLAGS[@]}" "${FILES[@]}"