We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6735145 commit a86a9e7Copy full SHA for a86a9e7
.github/workflows/apply-file-header.yml
@@ -39,7 +39,11 @@ jobs:
39
- run: git add .
40
name: Stage file header rule changes
41
working-directory: ${{ github.workspace }}
42
- - run: git commit -m "applied file header rule"
+ - 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"
47
name: Commit file header rule changes
48
49
- run: git push origin ${{ github.ref }}
0 commit comments