Skip to content

Commit

Permalink
fix the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
littleblack111 committed Jan 7, 2025
1 parent 6c3f089 commit 7cd8625
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,20 @@ jobs:

- name: Create patch
if: failure()
run: git diff > clang-format.patch

- name: Comment patch
if: failure()
uses: mshick/add-pr-comment@v2
with:
run: |
message:
please fix the following formatting issues, or directly apply the patch
```diff
<< FILE_CONTENTS >>
```
echo "fix the following formatting issues, or directly apply the patch" > clang-format.patch
echo '```diff' >> clang-format.patch
git diff >> clang-format.patch
echo '```' >> clang-format.patch
- name: Comment patch
if: failure()
uses: mshick/add-pr-comment@v2
with:
message-path: |
clang-format.patch
find: |
<< FILE_CONTENTS >>

0 comments on commit 7cd8625

Please sign in to comment.