Skip to content

Commit

Permalink
Fix phpcs coding style install
Browse files Browse the repository at this point in the history
* Update reviewdog

* Update entrypoint.sh

* Update entrypoint.sh

* Update Dockerfile

* Update entrypoint.sh
  • Loading branch information
chrfritsch authored Aug 11, 2023
1 parent 7bd63d1 commit 03e65b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM composer:2 AS composer
FROM php:8.1-cli-alpine

ENV REVIEWDOG_VERSION=v0.14.1
ENV REVIEWDOG_VERSION=v0.14.2

ENV COMPOSER_ALLOW_SUPERUSER=1

# hadolint ignore=DL3006
RUN apk --no-cache add git
Expand Down
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/sh
set -e

cd "${GITHUB_WORKSPACE}" || exit 1

git config --global --add safe.directory $GITHUB_WORKSPACE || exit 1
if [ -n "${GITHUB_WORKSPACE}" ] ; then
cd "${GITHUB_WORKSPACE}/${INPUT_WORKDIR}" || exit
git config --global --add safe.directory "${GITHUB_WORKSPACE}" || exit 1
fi

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

Expand Down

0 comments on commit 03e65b5

Please sign in to comment.