Skip to content

Commit a86a9e7

Browse files
author
Petr Sramek
committed
fixed git user and email issue
1 parent 6735145 commit a86a9e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/apply-file-header.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jobs:
3939
- run: git add .
4040
name: Stage file header rule changes
4141
working-directory: ${{ github.workspace }}
42-
- run: git commit -m "applied file header rule"
42+
- run: |
43+
git config user.name "$(git log -n 1 --pretty=format:%an)"
44+
git config user.email "$(git log -n 1 --pretty=format:%ae)"
45+
name: Set user and email from the last commit
46+
- run: git commit -m "applied file header rule"
4347
name: Commit file header rule changes
4448
working-directory: ${{ github.workspace }}
4549
- run: git push origin ${{ github.ref }}

0 commit comments

Comments
 (0)