Skip to content

Commit 12e423b

Browse files
authored
Trigger format if there are commits
1 parent 36011d5 commit 12e423b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/format.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
format:
10-
if: ${{ ! startsWith(github.event.head_commit.message, 'style(fmt)') }}
10+
if: ${{ github.event.commits != null && !startsWith(github.event.head_commit.message, 'style(fmt)') }}
1111
permissions:
1212
contents: write
1313
runs-on: ubuntu-latest
@@ -26,4 +26,4 @@ jobs:
2626
git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}"
2727
git add .
2828
git commit -m "style(fmt): code formatted"
29-
git push
29+
git push

0 commit comments

Comments
 (0)