From 1797b0432992cee19665ceb2058c7f05da3e9f19 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 12:42:16 +0200 Subject: [PATCH] Bump ZedThree/clang-tidy-review from 0.10.1 to 0.12.1 (#4482) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rasmus Karlsson --- .github/workflows/build.yml | 11 +++------ .github/workflows/post-clang-tidy-review.yml | 26 +------------------- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4b39938f..3c7062098 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -247,21 +247,16 @@ jobs: - name: clang-tidy review if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request') - uses: ZedThree/clang-tidy-review@v0.10.1 - id: review + uses: ZedThree/clang-tidy-review@v0.12.1 with: build_dir: build config_file: ".clang-tidy" split_workflow: true exclude: "tests/*,lib/*" - - uses: actions/upload-artifact@v3 + - name: clang-tidy-review upload if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request') - with: - name: clang-tidy-review - path: | - clang-tidy-review-output.json - clang-tidy-review-metadata.json + uses: ZedThree/clang-tidy-review/upload@v0.12.1 - name: Package - AppImage (Ubuntu) if: startsWith(matrix.os, 'ubuntu-20.04') && matrix.skip_artifact != 'yes' diff --git a/.github/workflows/post-clang-tidy-review.yml b/.github/workflows/post-clang-tidy-review.yml index 6d8f733e0..5757ae2fb 100644 --- a/.github/workflows/post-clang-tidy-review.yml +++ b/.github/workflows/post-clang-tidy-review.yml @@ -12,30 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: "Download artifact" - uses: actions/github-script@v6 - with: - script: | - const artifacts = await github.rest.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{github.event.workflow_run.id }}, - }); - const matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "clang-tidy-review" - })[0]; - const download = await github.rest.actions.downloadArtifact({ - owner: context.repo.owner, - repo: context.repo.repo, - artifact_id: matchArtifact.id, - archive_format: 'zip', - }); - const fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/clang-tidy-review.zip', Buffer.from(download.data)); - - name: "Unzip artifact" - run: unzip clang-tidy-review.zip - - - uses: ZedThree/clang-tidy-review/post@v0.10.1 - id: review + - uses: ZedThree/clang-tidy-review/post@v0.12.1 with: lgtm_comment_body: ""