diff --git a/Dockerfile b/Dockerfile index 328e30c..a5e19a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ FROM openjdk:17-alpine + ENV REVIEWDOG_VERSION=v0.14.1 + RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} +RUN wget -q https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.51.0/pmd-bin-6.51.0.zip \ + && unzip pmd-bin-6.51.0.zip + RUN apk add --no-cache git -COPY entrypoint.sh /entrypoint.sh +COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/LICENSE b/LICENSE index 383b8a5..8d28065 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 reviewdog developers +Copyright (c) 2022 kemsakurai Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a3d0322..eef46c9 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ jobs: name: PMD job steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run PMD uses: kemsakurai/action-pmd@master with: diff --git a/entrypoint.sh b/entrypoint.sh index f9bb0e6..b160402 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,11 +11,7 @@ export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" printenv ls -# fetch pmd of a requested version -wget -q "https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.51.0/pmd-bin-6.51.0.zip" -unzip pmd-bin-6.51.0.zip - -exec /bin/sh ./pmd-bin-6.51.0/bin/run.sh pmd -d "${INPUT_SRC_PATH}" -R "${INPUT_RULESETS_PATH}" -f emacs \ +exec /bin/sh /pmd-bin-6.51.0/bin/run.sh pmd -d "${INPUT_SRC_PATH}" -R "${INPUT_RULESETS_PATH}" -f emacs \ | reviewdog -efm="%f:%l: %m" \ -name="${INPUT_TOOL_NAME}" \ -reporter="${INPUT_REPORTER:-github-pr-check}" \