From 42d3d703b580d11732267b7ea6b6b18ba0802c7b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 22 Jul 2024 13:48:56 -0700 Subject: [PATCH] Remove the commenting attempt --- .github/workflows/lint.yml | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0792356f..51a62f46 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,6 @@ on: permissions: contents: read - pull-requests: write jobs: format_code: @@ -22,35 +21,6 @@ jobs: clangformat: 17.0.5 - name: Run clang-format - id: clang_format run: | find include src -name '*.h' -o -name '*.cc' | xargs clang-format -i -style=file -fallback-style=none - git diff | tee fmt.patch - if [ -s fmt.patch ]; then - exit 1 - fi - - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - if: failure() && steps.clang_format.outcome == 'failure' - with: - github-token: ${{ secrets.KEY }} - script: | - const fs = require('fs'); - const patch = fs.readFileSync('fmt.patch', { encoding: 'utf8' }); - const comment = `clang-format 17.0.5 found issues in the formatting in your code: -
- - View the diff from clang-format: - - - \`\`\`diff - ${patch} - \`\`\` - -
- `; - await github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: comment - }); + git diff --exit-code