Automatically trigger auto merge for Dependabot PRs
Issue gh-14535
This commit is contained in:
20
.github/workflows/trigger-dependabot-auto-merge-forward.yml
vendored
Normal file
20
.github/workflows/trigger-dependabot-auto-merge-forward.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user