diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 328b4fb..9b430ca 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -53,6 +53,7 @@ jobs: name: Merge Automatically needs: [test, build] runs-on: ubuntu-24.04 + if: ${{ github.actor == 'dependabot[bot]' }} permissions: pull-requests: write @@ -69,6 +70,8 @@ jobs: permission-pull-requests: write - name: Merge - uses: fastify/github-action-merge-dependabot@73ec4cbb5e56df5591eae286972d5b2201ffe90f # v3.15.0 - with: - github-token: ${{ steps.acces_token.outputs.token }} + env: + GH_TOKEN: ${{ steps.acces_token.outputs.token }} + GH_REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: gh pr merge "$PR_NUMBER" --admin --squash --delete-branch