From 086e22a5c961ee91b99e7e38f4635e2d0f155406 Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Wed, 18 Dec 2024 19:25:36 -0500 Subject: [PATCH] ci: Remove pylint-commenter.yml --- .github/workflows/pylint-commenter.yml | 54 -------------------------- 1 file changed, 54 deletions(-) delete mode 100644 .github/workflows/pylint-commenter.yml diff --git a/.github/workflows/pylint-commenter.yml b/.github/workflows/pylint-commenter.yml deleted file mode 100644 index ed012f34752..00000000000 --- a/.github/workflows/pylint-commenter.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Pylint - comment on the pull request - -# read-write repo token -# access to secrets -on: - workflow_run: - workflows: ["Pylint - checker"] - types: - - completed - -jobs: - pylint-comment: - runs-on: ubuntu-latest - if: > - github.event.workflow_run.event == 'pull_request' && - github.event.workflow_run.conclusion == 'success' - steps: - - name: 'Download artifact' - uses: actions/github-script@v7.0.1 - with: - script: | - var artifacts = await github.rest.actions.listWorkflowRunArtifacts ({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{github.event.workflow_run.id }}, - }); - var matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "pylint-result" - })[0]; - var download = await github.rest.actions.downloadArtifact({ - owner: context.repo.owner, - repo: context.repo.repo, - artifact_id: matchArtifact.id, - archive_format: 'zip', - }); - var fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/pylint-result.zip', Buffer.from(download.data)); - - name: Fetch results - run: | - unzip pylint-result.zip - echo "PYLINT_RES<> $GITHUB_ENV - cat pylint-result >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - - echo "PR_NUMBER=$(cat pr-number)" >> $GITHUB_ENV - - name: Comment PR - uses: thollander/actions-comment-pull-request@v2 - with: - comment_tag: pylint-result-comment - pr_number: ${{ env.PR_NUMBER }} - message: | -
Pylint result on modfied files: -
${{ env.PYLINT_RES }}
-