Skip to content

Commit 04a61b6

Browse files
committed
Fix format.yml
1 parent 5c836b8 commit 04a61b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
#!/bin/bash
3737
shopt -s extglob
3838
if [[ `git status !(.github) --porcelain` ]]; then
39-
git add !(.github)
39+
git add .
40+
git restore --staged .github
4041
git config --global user.name "GitHub Actions"
4142
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4243
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 repository owner.")"

0 commit comments

Comments
 (0)