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}}