diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f641071e3b9..348727b3f3d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -261,6 +261,9 @@ jobs: run: | echo "Failed to restore Python virtual environment from cache" exit 1 + - name: Register check executables problem matcher + run: | + echo "::add-matcher::.github/workflows/matchers/check-executables-have-shebangs.json" - name: Run executables check run: | . venv/bin/activate diff --git a/.github/workflows/matchers/check-executables-have-shebangs.json b/.github/workflows/matchers/check-executables-have-shebangs.json new file mode 100644 index 00000000000..667ef795632 --- /dev/null +++ b/.github/workflows/matchers/check-executables-have-shebangs.json @@ -0,0 +1,14 @@ +{ + "problemMatcher": [ + { + "owner": "check-executables-have-shebangs", + "pattern": [ + { + "regexp": "^(.+):\\s(.+)$", + "file": 1, + "message": 2 + } + ] + } + ] +}