File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 20
20
- ' *.proto'
21
21
- ' go.*'
22
22
23
+ env :
24
+ CODE_GENERATOR_NAME : struktur AG service user
25
+ CODE_GENERATOR_EMAIL :
[email protected]
26
+
23
27
permissions :
24
28
contents : read
25
29
34
38
steps :
35
39
- uses : actions/checkout@v4
36
40
with :
41
+ token : ${{ secrets.CODE_GENERATOR_PAT }}
37
42
ref : ${{ github.event.pull_request.head.ref }}
38
43
39
44
- uses : actions/setup-go@v5
60
65
if [ -z "$CHANGES" ]; then
61
66
echo "No files have changed, no need to commit / push."
62
67
else
63
- git config user.name "$(git log -n 1 --pretty=format:%an) "
64
- git config user.email "$(git log -n 1 --pretty=format:%ae) "
65
- git commit -m "Update generated files from ${{github.event.pull_request.head.sha}}" *_easyjson.go *.pb.go
68
+ git config user.name "$CODE_GENERATOR_NAME "
69
+ git config user.email "$CODE_GENERATOR_EMAIL "
70
+ git commit --author="$(git log -n 1 --pretty=format:%an) <$(git log -n 1 --pretty=format:%ae)>" - m "Update generated files from ${{github.event.pull_request.head.sha}}" *_easyjson.go *.pb.go
66
71
git push
67
72
fi
68
73
fi
You can’t perform that action at this time.
0 commit comments