Skip to content

Commit 78c2bab

Browse files
committed
ci(formatter): skip committing when there are no changes by formatter
1 parent a539adc commit 78c2bab

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/format.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ jobs:
5050
file_pattern: 'api/**/*.go'
5151
commit_user_name: 'github-actions[bot]'
5252
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
53-
skip_dirty_check: true
53+
skip_dirty_check: false
5454
skip_fetch: true
5555
skip_checkout: true
56-
disable_globbing: true
57-
status_options: '--untracked-files=no'
56+
disable_globbing: false
5857

5958
format-view:
6059
name: Format View
@@ -89,10 +88,10 @@ jobs:
8988
with:
9089
commit_message: 'style(view): format frontend code'
9190
branch: ${{ github.head_ref }}
91+
file_pattern: 'view/**'
9292
commit_user_name: 'github-actions[bot]'
9393
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
94-
skip_dirty_check: true
94+
skip_dirty_check: false
9595
skip_fetch: true
9696
skip_checkout: true
97-
disable_globbing: true
98-
status_options: '--untracked-files=no'
97+
disable_globbing: false

0 commit comments

Comments
 (0)