We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92c488 commit 2f5015eCopy full SHA for 2f5015e
.github/workflows/run-clang-format.yml
@@ -12,5 +12,19 @@ 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: |
+ # use `EOF` as delimiter to capture multiline output
17
+ {
18
+ echo 'CLANG_FORMAT_DIFF<<EOF
19
+ git clang-format-16 --diff origin/${{ github.base_ref }}
20
+ echo EOF
21
+ } >> $GITHUB_ENV
22
+ - uses: actions/github-script@v7
23
+ with:
24
+ script: |
25
+ octokit.rest.issues.createComment({
26
+ issue_number: context.issue.number,
27
+ owner: context.repo.owner,
28
+ repo: context.repo.repo,
29
+ body: $CLANG_FORMAT_DIFF
30
+ })
0 commit comments