We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92c488 commit ae40397Copy full SHA for ae40397
.github/workflows/run-clang-format.yml
@@ -12,5 +12,15 @@ jobs:
12
fetch-depth: 0
13
ref: ${{ github.event.pull_request.head.sha }}
14
- name: Run clang-format
15
- shell: bash
16
- run: git clang-format-16 --diff ${{ github.base_ref }}
+ run: |
+ echo "clang_format_diff=$(git clang-format-16 --diff origin/${{ github.base_ref }})" >> $GITHUB_OUTPUT
17
+ id: run_clang_format
18
+ - uses: actions/github-script@v7
19
+ with:
20
+ script: |
21
+ octokit.rest.issues.createComment({
22
+ issue_number: context.issue.number,
23
+ owner: context.repo.owner,
24
+ repo: context.repo.repo,
25
+ body: ${{ steps.run_clang_format.outputs.clang_format_diff }}
26
+ })
0 commit comments