diff --git a/.github/workflows/generated.yml b/.github/workflows/generated.yml index e0bd422b..8bd2b51c 100644 --- a/.github/workflows/generated.yml +++ b/.github/workflows/generated.yml @@ -20,6 +20,10 @@ on: - '*.proto' - 'go.*' +env: + CODE_GENERATOR_NAME: struktur AG service user + CODE_GENERATOR_EMAIL: opensource@struktur.de + permissions: contents: read @@ -61,9 +65,9 @@ jobs: if [ -z "$CHANGES" ]; then echo "No files have changed, no need to commit / push." else - git config user.name "$(git log -n 1 --pretty=format:%an)" - git config user.email "$(git log -n 1 --pretty=format:%ae)" - git commit -m "Update generated files from ${{github.event.pull_request.head.sha}}" *_easyjson.go *.pb.go + git config user.name "$CODE_GENERATOR_NAME" + git config user.email "$CODE_GENERATOR_EMAIL" + 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 git push fi fi