Skip to content

Commit 41d8d68

Browse files
authored
added dependabot config, and workflow to rebase dependencies branch onto which dependabot will open PRs (#136)
1 parent 91f2bb6 commit 41d8d68

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ updates:
1414
directory: "/"
1515
schedule:
1616
interval: "weekly"
17-
open-pull-requests-limit: 100
17+
open-pull-requests-limit: 100
18+
target-branch: "dependencies"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Automatic Rebase
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
rebase:
8+
name: Rebase `dependencies` with `master`
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
14+
ref: dependencies
15+
- run: |
16+
git config user.name github-actions
17+
git config user.email github-actions@github.com
18+
git rebase origin/master
19+
git push origin dependencies --force

0 commit comments

Comments
 (0)