From c489c81f79527f818be72b97b918b06e75eaee6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 28 Jul 2020 14:21:49 +0200 Subject: [PATCH] Re enable problem-matcher (#25) --- .github/workflows/ShellCheck.yml | 4 +++- Dockerfile | 2 ++ runaction | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) 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