Setup Auto Merge Forward Dependabot Commits Workflows

Issue gh-2865
This commit is contained in:
Marcus Hert Da Coregio
2024-03-18 08:18:50 -03:00
parent e136d13496
commit 1f2d9ca01d
3 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
name: Trigger Dependabot Auto Merge Forward
on:
push:
branches:
- '*.x'
permissions: read-all
jobs:
trigger-worflow:
name: Trigger Workflow
runs-on: ubuntu-latest
if: ${{ github.event.commits[0].author.username == 'dependabot[bot]' && github.repository == 'spring-projects/spring-session' }}
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