Skip to content

Commit b52c8b4

Browse files
fix: skip CI on sync-main-to-dev push (#52)
1 parent 3cf9d6e commit b52c8b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/github-pages-deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ concurrency:
1212

1313
jobs:
1414
test:
15-
# Skip if push is from sync-main-to-dev bot (code already deployed to staging/GH-Pages & prod/Netlify)
16-
if: github.actor != 'github-actions[bot]'
1715
uses: ./.github/workflows/test.yml
1816

1917
build:

.github/workflows/sync-main-to-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
git reset --hard origin/main
3838
fi
3939
40+
# Create empty commit with skip ci to prevent triggering workflows
41+
git commit --allow-empty -m "chore: sync from main [skip ci]"
42+
4043
# Push with force-with-lease (safe force push that fails if remote has new commits)
4144
# This workflow uses a PAT with admin bypass to push directly to the protected branch
4245
git push origin dev --force-with-lease

0 commit comments

Comments
 (0)