Skip to content

Commit 93858f7

Browse files
committed
fix
1 parent 0771f96 commit 93858f7

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

.github/workflows/clang-tidy-post.yaml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
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-
3915
- 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

Comments
 (0)