diff --git a/.github/workflows/depandabot_merge.yml b/.github/workflows/depandabot_merge.yml index dd8b15d..e496be8 100644 --- a/.github/workflows/depandabot_merge.yml +++ b/.github/workflows/depandabot_merge.yml @@ -13,23 +13,15 @@ permissions: contents: write pull-requests: write +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + + jobs: - build: - runs-on: "ubuntu-20.04" + dependabot_merge: + runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@master" - - 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}} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: "Merge Dependabot PR" - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Dependabot Auto Merge Action + uses: buluma/dependabot-auto-merge-action@v2.0.2