File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : Dependabot
3
+
4
+ on :
5
+ pull_request :
6
+
7
+ permissions :
8
+ contents : write
9
+
10
+ jobs :
11
+ update-deps :
12
+ name : Update deps
13
+ runs-on : ubuntu-latest
14
+ if : ${{ github.actor == 'dependabot[bot]' }}
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v4
18
+ with :
19
+ ref : ${{ github.head_ref }}
20
+ path : ./src/github.com/${{ github.repository }}
21
+ fetch-depth : 0
22
+
23
+ - name : Setup Golang
24
+ uses : openshift-knative/hack/actions/setup-go@main
25
+
26
+ - name : Install yq
27
+ run : |
28
+ go install github.com/mikefarah/yq/v3@latest
29
+
30
+ - name : Generate files
31
+ working-directory : ./src/github.com/${{ github.repository }}
32
+ run : make generate-release
33
+
34
+ - name : git push
35
+ working-directory : ./src/github.com/${{ github.repository }}
36
+ run : |
37
+ if ! git diff --exit-code --quiet
38
+ then
39
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
40
+ git config --local user.name "github-actions[bot]"
41
+ git add .
42
+ git commit -m "Run make generate-release"
43
+ git push
44
+ fi
You can’t perform that action at this time.
0 commit comments