Skip to content

Commit 88cbfc9

Browse files
committed
fix: prevent infinite loop in workflow automation
- Add condition to skip integrate-develop workflow for sync commits from main - Prevents develop→staging→main→develop infinite loop - Ignores commits with 'chore: sync version updates from main' message
1 parent c8a5b20 commit 88cbfc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/integrate-develop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
create-or-update-pr:
1414
name: Create or Update PR to Staging
1515
runs-on: ubuntu-latest
16+
# Skip if this is a sync commit from main
17+
if: ${{ !contains(github.event.head_commit.message, 'chore: sync version updates from main') && !contains(github.event.head_commit.message, 'Sync: main → develop') }}
1618
permissions:
1719
contents: write
1820
pull-requests: write

0 commit comments

Comments
 (0)