File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Update Dependencies'
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : ' 0 6 * * 5'
7
+
8
+ env :
9
+ GOPROXY : https://proxy.golang.org
10
+
11
+ permissions :
12
+ contents : write
13
+ pull-requests : write
14
+
15
+ jobs :
16
+ update-deps :
17
+ if : ${{ github.repository == 'kubernetes/node-problem-detector' }}
18
+ runs-on : ubuntu-22.04
19
+ steps :
20
+ - uses : actions/setup-go@v5
21
+ with :
22
+ go-version : ' 1.22.1'
23
+ - uses : actions/checkout@v4
24
+ - name : Update Dependencies
25
+ id : update_deps
26
+ run : |
27
+ make depup
28
+ echo 'changes<<EOF' >> $GITHUB_OUTPUT
29
+ git status --porcelain >> $GITHUB_OUTPUT
30
+ echo 'EOF' >> $GITHUB_OUTPUT
31
+ - name : Create PR
32
+ if : ${{ steps.update_deps.outputs.changes != '' }}
33
+ uses : peter-evans/create-pull-request@v6
34
+ with :
35
+ title : ' Update dependencies'
36
+ commit-message : Update dependencies
37
+ committer :
github-actions <[email protected] >
38
+ author :
github-actions <[email protected] >
39
+ branch : dependencies/update
40
+ branch-suffix : timestamp
41
+ base : master
42
+ delete-branch : true
43
+ labels : ok-to-test
44
+ body : |
45
+ Updating go.mod with latest dependencies...
You can’t perform that action at this time.
0 commit comments