diff --git a/Dockerfile b/Dockerfile index f40d783..9904b69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,11 +23,11 @@ RUN apk --update add git curl && \ rm /var/cache/apk/* # install reviewdog -ENV REVIEWDOG_VERSION=v0.17.0 +ENV REVIEWDOG_VERSION=$REVIEWDOG_VERSION RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} # install actionlint -ENV ACTIONLINT_VERSION=1.6.26 +ENV ACTIONLINT_VERSION=$INPUT_ACTIONLINT_VERSION ENV OSTYPE=linux-gnu RUN cd /usr/local/bin/ && wget -O - -q https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash | sh -s -- ${ACTIONLINT_VERSION} diff --git a/action.yml b/action.yml index 6783753..ea256b2 100644 --- a/action.yml +++ b/action.yml @@ -41,9 +41,20 @@ inputs: description: 'Additional actionlint flags' default: '' required: false + reviewdog_version: + description: 'Reviewdog version' + default: 'v0.17.1' + required: false + actionlint_version: + description: 'actionlint version' + default: '1.6.26' + required: false runs: using: 'docker' image: 'Dockerfile' + env: + REVIEWDOG_VERSION: ${{ inputs.reviewdog_version }} + ACTIONLINT_VERSION: ${{ inputs.actionlint_version }} branding: color: red icon: check-circle