diff --git a/.github/workflows/pr-auto-merge.yml b/.github/workflows/pr-auto-merge.yml index 479ec072562..ce31a503009 100644 --- a/.github/workflows/pr-auto-merge.yml +++ b/.github/workflows/pr-auto-merge.yml @@ -13,13 +13,13 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.label.name == 'auto-merge' }} steps: - - name: Approve a PR + - name: Approve PR run: gh pr review --approve "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.WEBTEAM_AUTOMERGE_TOKEN}} - - name: Enable auto-merge for Dependabot PRs + - name: Enable auto-merge run: gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}}