Skip to content

Commit

Permalink
feat: add inputs for reviewdog and actionlint versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas2mey committed Feb 16, 2024
1 parent cecbfdd commit c57171f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c57171f

Please sign in to comment.