Skip to content

Commit e57f23a

Browse files
authored
Merge pull request #4845 from randomvariable/tame-dependabot
🌱 Dependabot: Change to weekly, enable auto commit of generated code
2 parents 048eebc + a149fcf commit e57f23a

File tree

2 files changed

+47
-5
lines changed

2 files changed

+47
-5
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ updates:
88
#
99
# Maintainers can continue to look at the log in
1010
# https://github.com/kubernetes-sigs/cluster-api/network/updates/
11-
open-pull-requests-limit: 0
11+
open-pull-requests-limit: 1
1212
directory: "/"
1313
schedule:
14-
interval: "daily"
14+
interval: "weekly"
1515
commit_message:
1616
prefix: "🌱"
1717

18-
# Weekly updates for everything else
1918
- package-ecosystem: "docker"
2019
directory: "/"
2120
schedule:
@@ -32,15 +31,15 @@ updates:
3231

3332
- package-ecosystem: "gomod"
3433
directory: "/hack/tools"
35-
open-pull-requests-limit: 0
34+
open-pull-requests-limit: 1
3635
schedule:
3736
interval: "weekly"
3837
commit_message:
3938
prefix: "🌱"
4039

4140
- package-ecosystem: "gomod"
4241
directory: "/test"
43-
open-pull-requests-limit: 0
42+
open-pull-requests-limit: 1
4443
schedule:
4544
interval: "weekly"
4645
commit_message:

.github/workflows/dependabot.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: dependabot
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dependabot/**
7+
push:
8+
branches:
9+
- dependabot/**
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Set up Go 1.x
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: '1.16'
21+
id: go
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v2
24+
- uses: actions/cache@v2
25+
name: Restore go cache
26+
with:
27+
path: |
28+
~/.cache/go-build
29+
~/go/pkg/mod
30+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
31+
restore-keys: |
32+
${{ runner.os }}-go-
33+
- name: Update all modules
34+
run: make modules
35+
- name: Update generated code
36+
run: make generate
37+
- uses: EndBug/add-and-commit@v7
38+
name: Commit changes
39+
with:
40+
author_name: dependabot[bot]
41+
author_email: 49699333+dependabot[bot]@users.noreply.github.com
42+
default_author: github_actor
43+
message: 'Update generated code'

0 commit comments

Comments
 (0)