From 1408d943a0de574ab573e4ba6efae3691844e44e Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 29 Jul 2024 12:54:31 -0500 Subject: [PATCH] add local actionlint matcher json --- .github/actionlint-matcher.json | 17 +++++++++++++++++ .github/workflows/actionlint.yml | 5 +---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .github/actionlint-matcher.json diff --git a/.github/actionlint-matcher.json b/.github/actionlint-matcher.json new file mode 100644 index 000000000..09211db2f --- /dev/null +++ b/.github/actionlint-matcher.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "actionlint", + "pattern": [ + { + "regexp": "^(?:\\x1b\\[\\d+m)?(.+?)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*: (?:\\x1b\\[\\d+m)*(.+?)(?:\\x1b\\[\\d+m)* \\[(.+?)\\]$", + "file": 1, + "line": 2, + "column": 3, + "message": 4, + "code": 5 + } + ] + } + ] + } diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index f6e517873..667a77682 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -11,8 +11,5 @@ jobs: steps: - uses: actions/checkout@v4 - name: Add problem matchers - run: | - # https://github.com/rhysd/actionlint/blob/3a2f2c7/docs/usage.md#problem-matchers - curl -LO https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json - echo "::add-matcher::actionlint-matcher.json" + run: echo "::add-matcher::.github/actionlint-matcher.json" - uses: docker://rhysd/actionlint:latest