-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically trigger auto merge for Dependabot PRs
Issue gh-14535
- Loading branch information
1 parent
7c3a6a5
commit 56c5fc2
Showing
3 changed files
with
33 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
20
.github/workflows/trigger-dependabot-auto-merge-forward.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |