Commit 5b721ae 1 parent b92c488 commit 5b721ae Copy full SHA for 5b721ae
File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 11
11
with :
12
12
fetch-depth : 0
13
13
ref : ${{ github.event.pull_request.head.sha }}
14
+ - name : Fetch base_ref HEAD
15
+ run : git fetch --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
14
16
- name : Run clang-format
15
- shell : bash
16
- run : git clang-format-16 --diff ${{ github.base_ref }}
17
+ run : |
18
+ echo "clang_format_diff=$(git clang-format-16 --diff ${{ github.base_ref }})" >> $GITHUB_OUTPUT
19
+ id : run_clang_format
20
+ - uses : actions/github-script@v7
21
+ with :
22
+ script : |
23
+ octokit.rest.issues.createComment({
24
+ issue_number: context.issue.number,
25
+ owner: context.repo.owner,
26
+ repo: context.repo.repo,
27
+ body: ${{ steps.run_clang_format.outputs.clang_format_diff }}
28
+ })
You can’t perform that action at this time.
0 commit comments