22 lines
728 B
YAML
22 lines
728 B
YAML
name: Dependabot Automerge Check
|
|
on:
|
|
- pull_request_target
|
|
|
|
jobs:
|
|
auto-merge:
|
|
if: github.actor == 'dependabot[bot]'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Automerge dependabot dependencies
|
|
uses: ahmadnassri/action-dependabot-auto-merge@v2
|
|
with:
|
|
github-token: ${{ secrets.OPENHPI_BOT_TOKEN }}
|
|
- name: Automerge Sentry PRs
|
|
run: gh pr merge --auto --rebase "$PR_URL" # Use Github CLI to merge automatically the PR
|
|
if: contains(github.event.pull_request.title, 'sentry')
|
|
env:
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
GITHUB_TOKEN: ${{ secrets.OPENHPI_BOT_TOKEN }}
|