Skip to content

Commit

Permalink
only in pr
Browse files Browse the repository at this point in the history
  • Loading branch information
littleblack111 committed Jan 9, 2025
1 parent daa738a commit c35010b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ jobs:
run: ninja -C build clang-format-check

- name: clang-format apply
if: failure()
if: ${{ failure() && github.event_name == 'pull_request' }}
run: ninja -C build clang-format

- name: Create patch
if: failure()
if: ${{ failure() && github.event_name == 'pull_request' }}
run: |
echo 'Please fix the formatting issues by running [`clang-format`](https://wiki.hyprland.org/Contributing-and-Debugging/PR-Guidelines/#code-style), or directly apply this patch:' > clang-format.patch
echo '<details>' >> clang-format.patch
Expand All @@ -145,7 +145,7 @@ jobs:
echo '</details>' >> clang-format.patch
- name: Comment patch
if: failure()
if: ${{ failure() && github.event_name == 'pull_request' }}
uses: mshick/add-pr-comment@v2
with:
message-path: |
Expand Down

0 comments on commit c35010b

Please sign in to comment.