Bump github/codeql-action from 2 to 3
[storage-units.git] / .github / workflows / dependabot-automerge.yml
blobe7629960da3b156832991024ae537ece7650e888
1 # SPDX-FileCopyrightText: The Storage-Units Authors
2 # SPDX-License-Identifier: 0BSD
4 name: Dependabot auto-merge
5 on: pull_request
7 permissions:
8   contents: write
9   pull-requests: write
11 jobs:
12   dependabot:
13     runs-on: ubuntu-latest
14     if: ${{ github.actor == 'dependabot[bot]' }}
15     steps:
16       - name: Enable auto-merge for Dependabot PRs
17         run: gh pr merge --auto --rebase "$PR_URL"
18         env:
19           PR_URL: ${{ github.event.pull_request.html_url }}
20           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}