From 41e965f0c84c0ea4e748f58a8426131306a99c43 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Wed, 22 Jan 2025 15:50:03 -0700 Subject: [PATCH] ci: remove dependabot automation that doesn't work (#9763) ### Description This automation used to work but doesn't anymore. It's creating a bunch of unnecessary work for me, so I'm removing it. --- .../examples-autoapprove-and-automerge.yml | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/examples-autoapprove-and-automerge.yml diff --git a/.github/workflows/examples-autoapprove-and-automerge.yml b/.github/workflows/examples-autoapprove-and-automerge.yml deleted file mode 100644 index 39e6e14b89f69..0000000000000 --- a/.github/workflows/examples-autoapprove-and-automerge.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This action is a hack to create one umbrella PR for example updates. -# See dependabot.yml for more. - -name: Dependabot auto-approve and auto-merge -on: pull_request - -permissions: - contents: write - pull-requests: write - -jobs: - dependabot: - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Approve a PR - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} - dependabot-2: - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --squash "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GH_TOKEN: ${{secrets.GITHUB_TOKEN}}