We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ad2651 commit ee92cb0Copy full SHA for ee92cb0
.github/workflows/lint-format.yml
@@ -25,7 +25,10 @@ jobs:
25
git config --local user.email "github-actions[bot]@users.noreply.github.com"
26
git config --local user.name "github-actions[bot]"
27
git add -A
28
- git diff --staged --quiet || git commit -m "style: auto-format code"
29
- git push
+ if ! git diff --staged --quiet; then
+ ORIGINAL_MSG=$(git log -1 --pretty=%B)
30
+ git commit --amend -m "$ORIGINAL_MSG [skip ci]"
31
+ git push --force-with-lease
32
+ fi
33
- run: npm run lint
34
continue-on-error: true
0 commit comments