Skip to content

Commit

Permalink
Automatically trigger auto merge for Dependabot PRs
Browse files Browse the repository at this point in the history
Issue gh-14535
  • Loading branch information
marcusdacoregio committed Feb 6, 2024
1 parent 7c3a6a5 commit 56c5fc2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 55 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/edit-dependabot-pr.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/merge-dependabot-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Merge Dependabot PR

on:
pull_request:

run-name: Merge Dependabot PR ${{ github.ref_name }}

jobs:
merge-dependabot-pr:
permissions: write-all
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@v2
with:
mergeArguments: '--auto --rebase'
20 changes: 20 additions & 0 deletions .github/workflows/trigger-dependabot-auto-merge-forward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Trigger Dependabot Auto Merge Forward

on:
push:

permissions: read-all

jobs:
trigger-worflow:
name: Trigger Workflow
runs-on: ubuntu-latest
if: github.event.commits[0].author.username == 'dependabot[bot]'
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- id: trigger
env:
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
run: gh workflow run dependabot-auto-merge-forward.yml -r main

0 comments on commit 56c5fc2

Please sign in to comment.