Compare commits

..

2 Commits

Author SHA1 Message Date
c9055bbd25 Merge branch 'main' of https://git.b4l.co.th/B4L/b4l-project-template
All checks were successful
Auto-Sort Files / auto-sort (push) Successful in 4s
2025-08-11 11:52:25 +07:00
e8c01c8747 Prevent infinite workflow loops by skipping CI bot commits
- Add condition to skip workflow when triggered by Auto-sort commits
- Use github.event.head_commit.message to detect CI bot commits
- Prevent infinite loop where workflow push triggers another workflow run
- Only run workflow for user commits, not automated CI commits
- Maintains functionality while preventing recursive execution
2025-08-11 11:52:04 +07:00

View File

@@ -12,6 +12,8 @@ on:
jobs: jobs:
auto-sort: auto-sort:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Skip if the commit was made by the CI bot to prevent infinite loops
if: ${{ !contains(github.event.head_commit.message, 'Auto-sort:') }}
steps: steps:
- name: Checkout repository - name: Checkout repository