Skip to content

Commit

Permalink
Merge pull request #8 from FiniteMonkeys/kc/7
Browse files Browse the repository at this point in the history
feat: add Problem Matchers to actionlint
  • Loading branch information
krisalyssa authored Jun 30, 2024
2 parents 737afd7 + 7139e36 commit dcbbed2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/actionlint-matcher.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
]
}
7 changes: 4 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ on:

permissions:
contents: read
# id-token: write
# issues: write
# pull-requests: write

jobs:
lint-gha:
Expand All @@ -24,6 +21,10 @@ jobs:
- name: check out repository
uses: actions/checkout@v4

- name: install actionlint-matcher
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
- name: Check workflow files
uses: docker://rhysd/actionlint:latest
with:
Expand Down

0 comments on commit dcbbed2

Please sign in to comment.