diff --git a/.github/workflows/auto-merge-github-actions.yml b/.github/workflows/auto-merge-github-actions.yml index 86262f3..f6779d0 100644 --- a/.github/workflows/auto-merge-github-actions.yml +++ b/.github/workflows/auto-merge-github-actions.yml @@ -5,7 +5,8 @@ on: - opened - synchronize permissions: - contents: write + contents: write + pull-requests: write jobs: auto-merge: runs-on: ubuntu-latest @@ -14,12 +15,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Auto approve - uses: hmarr/auto-approve-action@v2.0.0 + uses: hmarr/auto-approve-action@v4.0.0 with: github-token: ${{ secrets.GH_TOKEN }} - name: Merge pull request uses: "pascalgn/automerge-action@v0.16.3" permissions: contents: write + pull-requests: write env: GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"