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