@@ -12,28 +12,10 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- # Downloads the artifact uploaded by the lint action
16
- - name : ' Download artifact'
17
- uses : actions/github-script@v6
18
- with :
19
- script : |
20
- const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
21
- owner: context.repo.owner,
22
- repo: context.repo.repo,
23
- run_id: ${{github.event.workflow_run.id }},
24
- });
25
- const matchArtifact = artifacts.data.artifacts.filter((artifact) => {
26
- return artifact.name == "clang-tidy-review"
27
- })[0];
28
- const download = await github.rest.actions.downloadArtifact({
29
- owner: context.repo.owner,
30
- repo: context.repo.repo,
31
- artifact_id: matchArtifact.id,
32
- archive_format: 'zip',
33
- });
34
- const fs = require('fs');
35
- fs.writeFileSync('${{github.workspace}}/clang-tidy-review.zip', Buffer.from(download.data));
36
- - name : ' Unzip artifact'
37
- run : unzip clang-tidy-review.zip
38
-
39
15
-
uses :
ZedThree/clang-tidy-review/[email protected]
16
+ # lgtm_comment_body, max_comments, and annotations need to be set on the posting workflow in a split setup
17
+ with :
18
+ # adjust options as necessary
19
+ lgtm_comment_body : ' '
20
+ annotations : false
21
+ max_comments : 15
0 commit comments