Skip to content

Commit ee92cb0

Browse files
committed
hopefully stop the yap
1 parent 6ad2651 commit ee92cb0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/lint-format.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
git config --local user.email "github-actions[bot]@users.noreply.github.com"
2626
git config --local user.name "github-actions[bot]"
2727
git add -A
28-
git diff --staged --quiet || git commit -m "style: auto-format code"
29-
git push
28+
if ! git diff --staged --quiet; then
29+
ORIGINAL_MSG=$(git log -1 --pretty=%B)
30+
git commit --amend -m "$ORIGINAL_MSG [skip ci]"
31+
git push --force-with-lease
32+
fi
3033
- run: npm run lint
3134
continue-on-error: true

0 commit comments

Comments
 (0)