Skip to content

Commit

Permalink
Trigger format if there are commits
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Dec 23, 2024
1 parent 36011d5 commit 12e423b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

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

0 comments on commit 12e423b

Please sign in to comment.