Automatically trigger auto merge for Dependabot PRs

Issue gh-14535
This commit is contained in:
Marcus Hert Da Coregio
2024-02-06 08:06:06 -03:00
parent 7c3a6a567e
commit 56c5fc281e
3 changed files with 33 additions and 55 deletions

View File

@@ -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