Skip to content

Commit 7504b18

Browse files
authored
Merge pull request #170 from HackSoftware/change-dependabot-target
Add `dependencies` as Dependabot's target branch
2 parents 5cb309c + 88d28ab commit 7504b18

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "pip" # See documentation for possible values
8+
# Enable version updates for Python
9+
- package-ecosystem: "pip"
910
directory: "/" # Location of package manifests
11+
# Check for updates once a week
1012
schedule:
1113
interval: "weekly"
14+
# Use the `dependencies` branch as a target
15+
target-branch: "dependencies"
16+
17+
# Enable version updates for GH Actions
18+
- package-ecosystem: "github-actions"
19+
# Look for a `/workflows` in the `root` directory
20+
directory: "/"
21+
# Check for updates once a week
22+
schedule:
23+
interval: "weekly"
24+
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-with-lease

0 commit comments

Comments
 (0)