Skip to content

Commit 16ecc26

Browse files
authored
Check for commits in Format workflow
1 parent 3003152 commit 16ecc26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
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
@@ -32,5 +32,5 @@ jobs:
3232
git config user.name AdyenAutomationBot
3333
git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}"
3434
git add .
35-
git commit -m "style(fmt): code formatted"
35+
git commit -m "style(fmt): code formatted" || echo "No changes to commit"
3636
git push

0 commit comments

Comments
 (0)