Skip to content

Commit c3b289d

Browse files
committed
Don't delete files we need on sync.
1 parent c9f8f04 commit c3b289d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/sync-dev-to-vX.Y-dev.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
# exclude mjs files because we want to sync from the head
5050
# neutralizes non-zero exit code because an empty selection result returns 1
5151
git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo ""
52+
# Preserve the destination branch's schema test runner.
53+
git checkout "origin/$BASE" -- tests/schema/schema.test.mjs
5254
git commit -m "Restored src/ and tests/schema/" || echo ""
5355
git push -u origin $SYNC
5456

‎.github/workflows/sync-main-to-dev.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
# exclude mjs files because we want to sync from the head
4646
# neutralizes non-zero exit code because an empty selection result returns 1
4747
git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo ""
48+
# Preserve the destination branch's schema test runner.
49+
git checkout "origin/$BASE" -- tests/schema/schema.test.mjs
4850
git commit -m "Restored src/ and tests/schema/" || echo ""
4951
git push -u origin $SYNC
5052

0 commit comments

Comments
 (0)