Skip to content

Commit

Permalink
Fix pathing
Browse files Browse the repository at this point in the history
The vendor directory was relative but GitHub Actions doesn’t start up the given directory.
  • Loading branch information
donatj committed Aug 30, 2023
1 parent 7331c71 commit a7dbcfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion action-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ FLAGS=()

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

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

0 comments on commit a7dbcfc

Please sign in to comment.