Skip to content

Commit 830ab12

Browse files
committed
Update reformat files workflow
1 parent e5da94b commit 830ab12

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/format.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
workflow_dispatch:
66

7+
permissions:
8+
contents: write
9+
710
concurrency:
811
group: ${{ github.workflow }}
912
cancel-in-progress: false
@@ -35,7 +38,9 @@ jobs:
3538
run: |
3639
if [[ `git status --porcelain` ]]; then
3740
git add .
38-
git commit --author "GitHub Actions <videocreator@outlook.de>" -m "$(echo -e "Reformat code\n\n\nCo-authored-by: $(git log "${{ github.sha }}^..${{ github.sha }}" --pretty=format:'%an <%ae>')")"
41+
git config --global user.name "GitHub Actions"
42+
git config --global user.email "videocreator@outlook.de"
43+
git commit -m "$(echo -e "Reformat code\n\nOriginal commit: ${{ github.sha }}\nThis is an automated task.\nIf you have questions or concerns about this task,\nplease contact the provided email."
3944
git push
4045
else
4146
git status

0 commit comments

Comments
 (0)