File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright The OpenTelemetry Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ on :
5
+ pull_request :
6
+ branches : [ main ]
7
+
8
+ permissions :
9
+ actions : write
10
+ pull-requests : write
11
+ contents : write
12
+ packages : write
13
+
14
+ jobs :
15
+ dependabot-auto-update-protobuf-diff :
16
+ runs-on : ubuntu-latest
17
+ # Only run this job if the PR is opened by dependabot and the last commit is from dependabot
18
+ if : github.event.pull_request.user.login == 'dependabot[bot]'
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ with :
23
+ ref : ${{ github.head_ref }}
24
+ token : ${{ secrets.DEPENDABOT_TOKEN }}
25
+ - name : Generate
26
+ run : make clean docker-generate-protobuf
27
+ - name : Commit only if there are changes
28
+ run : |
29
+ if ! git diff --quiet; then
30
+ git config user.name "dependabot[bot]"
31
+ git config user.email "49699333+dependabot[bot]@users.noreply.github.com"
32
+ git add .
33
+ git commit -s -m "chore: update protobuf"
34
+ git push
35
+ fi
You can’t perform that action at this time.
0 commit comments