diff --git a/.github/workflows/ShellCheck.yml b/.github/workflows/ShellCheck.yml index d6bbb8c..e115d4d 100644 --- a/.github/workflows/ShellCheck.yml +++ b/.github/workflows/ShellCheck.yml @@ -5,8 +5,10 @@ jobs: name: ShellCheck runs-on: ubuntu-latest steps: + - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v2 + - name: Run ShellCheck uses: ./ with: diff --git a/Dockerfile b/Dockerfile index e4783f7..4738ce6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,6 @@ FROM alpine:3.12.0 RUN apk add --no-cache shellcheck bash COPY runaction /action/runaction +COPY .github/problem-matcher.json /problem-matcher.json + ENTRYPOINT ["bash", "/action/runaction"] \ No newline at end of file diff --git a/runaction b/runaction index e5f4a7f..df5dc53 100755 --- a/runaction +++ b/runaction @@ -1,7 +1,11 @@ #!/bin/bash ## Enable problem matcher +cp /problem-matcher.json ./problem-matcher.json +echo "::add-matcher::problem-matcher.json" + +## Run action cd "$GITHUB_WORKSPACE" || exit 1 declare statuscode