Skip to content

Commit a7dbcfc

Browse files
committed
Fix pathing
The vendor directory was relative but GitHub Actions doesn’t start up the given directory.
1 parent 7331c71 commit a7dbcfc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ ENV COMPOSER_ALLOW_SUPERUSER 1
66
RUN curl -sS https://getcomposer.org/installer | php \
77
&& mv composer.phar /usr/local/bin/composer
88

9-
RUN composer require 'staabm/annotate-pull-request-from-checkstyle:1.*'
9+
RUN composer global require 'staabm/annotate-pull-request-from-checkstyle:1.*'
10+
ENV PATH /root/.composer/vendor/bin:$PATH
1011

1112
ADD action-entrypoint.sh /usr/local/bin
1213

action-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ FLAGS=()
1313

1414
IFS=";" read -r -a FILES <<< "$CS2PR_FILES"
1515

16-
vendor/bin/cs2pr "${FLAGS[@]}" "${FILES[@]}"
16+
cs2pr "${FLAGS[@]}" "${FILES[@]}"

0 commit comments

Comments
 (0)