diff --git a/Dockerfile b/Dockerfile index 862ed44..0d48429 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,5 @@ RUN apk update && apk upgrade && \ apk add --no-cache bash git openssh COPY entrypoint.sh /entrypoint.sh COPY lib/actions/checkout/index.js /checkout.js +COPY lib/actions/checkout/problem-matcher.json /problem-matcher.json ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/lib/actions/checkout/README.md b/lib/actions/checkout/README.md index 04cc7a5..89ad32d 100644 --- a/lib/actions/checkout/README.md +++ b/lib/actions/checkout/README.md @@ -1,3 +1,3 @@ # Checkout Action -Taken from [dist/index.js](https://github.com/actions/checkout/blob/01aecccf739ca6ff86c0539fbc67a7a5007bbc81/dist/index.js). +Taken from [dist/index.js](https://github.com/actions/checkout/blob/01aecccf739ca6ff86c0539fbc67a7a5007bbc81/dist/index.js) and [dist/problem-matcher.json](https://github.com/actions/checkout/blob/01aecccf739ca6ff86c0539fbc67a7a5007bbc81/dist/problem-matcher.json). diff --git a/lib/actions/checkout/problem-matcher.json b/lib/actions/checkout/problem-matcher.json new file mode 100644 index 0000000..13f6a7e --- /dev/null +++ b/lib/actions/checkout/problem-matcher.json @@ -0,0 +1,13 @@ +{ + "problemMatcher": [ + { + "owner": "checkout-git", + "pattern": [ + { + "regexp": "^(fatal|error): (.*)$", + "message": 2 + } + ] + } + ] +}