From 5661e0d1144f7282452c71ddd8506dc0e369170c Mon Sep 17 00:00:00 2001 From: "Henry H. Andrews" Date: Wed, 23 Sep 2026 12:44:30 -0700 Subject: [PATCH] Don't delete files we need on sync. --- .github/workflows/sync-dev-to-vX.Y-dev.yaml | 2 ++ .github/workflows/sync-main-to-dev.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/sync-dev-to-vX.Y-dev.yaml b/.github/workflows/sync-dev-to-vX.Y-dev.yaml index 00179fa36b..26579009b1 100644 --- a/.github/workflows/sync-dev-to-vX.Y-dev.yaml +++ b/.github/workflows/sync-dev-to-vX.Y-dev.yaml @@ -49,6 +49,8 @@ jobs: # exclude mjs files because we want to sync from the head # neutralizes non-zero exit code because an empty selection result returns 1 git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo "" + # Preserve the destination branch's schema test runner. + git checkout "origin/$BASE" -- tests/schema/schema.test.mjs git commit -m "Restored src/ and tests/schema/" || echo "" git push -u origin $SYNC diff --git a/.github/workflows/sync-main-to-dev.yaml b/.github/workflows/sync-main-to-dev.yaml index 732e9c4015..a49644d3df 100644 --- a/.github/workflows/sync-main-to-dev.yaml +++ b/.github/workflows/sync-main-to-dev.yaml @@ -45,6 +45,8 @@ jobs: # exclude mjs files because we want to sync from the head # neutralizes non-zero exit code because an empty selection result returns 1 git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo "" + # Preserve the destination branch's schema test runner. + git checkout "origin/$BASE" -- tests/schema/schema.test.mjs git commit -m "Restored src/ and tests/schema/" || echo "" git push -u origin $SYNC