diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 754b3c0..623fe7b 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -1,19 +1,10 @@ -name: Auto Merge +name: Enable Dependabot Auto-Merge -on: - pull_request_target: +on: pull_request jobs: - auto-merge: - name: Merge Automatically - runs-on: ubuntu-20.04 - if: github.actor == 'dependabot[bot]' - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Prepare Auto Merge - uses: ahmadnassri/action-dependabot-auto-merge@v2 - with: - target: minor - github-token: ${{ secrets.GITOPS_TOKEN }} + dependabot: + uses: Staffbase/gha-workflows/.github/workflows/template_automerge_dependabot.yml@v3.2.0 + secrets: + app_id: ${{ vars.STAFFBASE_ACTIONS_APP_ID }} + private_key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }}