From 1f221af6098f6d8f0df7c5b0649377f9f901a2d5 Mon Sep 17 00:00:00 2001 From: Abel Garcia Dorta Date: Thu, 11 Mar 2021 10:06:41 +0000 Subject: [PATCH] ci(automerge): Drop support for automerge indefinitely --- .github/workflows/auto-merge.yml | 47 ----------------------------- .github/workflows/pull_request.yaml | 9 ------ 2 files changed, 56 deletions(-) delete mode 100644 .github/workflows/auto-merge.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml deleted file mode 100644 index 709f8e4c..00000000 --- a/.github/workflows/auto-merge.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: auto-merge - -on: - workflow_run: - workflows: ["CI"] - types: - - completed - -jobs: - auto-merge: - runs-on: ubuntu-latest - steps: - - name: 'Download artifact' - uses: actions/github-script@v3.1.0 - with: - script: | - var artifacts = await github.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 == "pr" - })[0]; - var download = await github.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}}/pr.zip', Buffer.from(download.data)); - - run: unzip pr.zip - - - name: 'Comment on PR' - uses: actions/github-script@v3 - with: - github-token: ${{ secrets.token }} - script: | - var fs = require('fs'); - var issue_number = Number(fs.readFileSync('./NR')); - await github.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue_number, - body: '@dependabot merge' - }); diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 682a7a2f..125d631c 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -14,12 +14,3 @@ jobs: run: npm run build - name: Export run: npm run export - # https://securitylab.github.com/research/github-actions-preventing-pwn-requests - - name: Save PR number - run: | - mkdir -p ./pr - echo ${{ github.event.number }} > ./pr/NR - - uses: actions/upload-artifact@v2 - with: - name: pr - path: pr/