Skip to content

Commit e795760

Browse files
committed
Enforce code formatting in PR
1 parent c8533ab commit e795760

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/build-pr.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Build&Test PR
88
on:
99

1010
# automatic on every pull request
11-
pull_request_target:
11+
pull_request:
1212

1313
# manual (for community PRs that we want to force-run here)
1414
workflow_dispatch:
@@ -274,3 +274,16 @@ jobs:
274274
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
275275
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
276276
HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }}
277+
278+
enforce-code-formatting:
279+
runs-on: ubuntu-latest
280+
needs: get-refs
281+
282+
steps:
283+
- uses: actions/checkout@v5
284+
with:
285+
ref: ${{ needs.get-refs.outputs.ref }}
286+
token: ${{ secrets.GH_TOKEN }}
287+
288+
# https://github.com/jidicula/clang-format-action/releases/tag/v4.15.0
289+
- uses: jidicula/clang-format-action@4726374d1aa3c6aecf132e5197e498979588ebc8

0 commit comments

Comments
 (0)