From 1b028e26a094b5f7eb33f142a61c768d21dcf01a Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 13 Aug 2026 14:13:57 -0400 Subject: [PATCH 1/2] ci: negates path spec and neutralizes non-zero exit codes Signed-off-by: Vincent Biret --- .github/workflows/sync-dev-to-vX.Y-dev.yaml | 2 +- .github/workflows/sync-main-to-dev.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-dev-to-vX.Y-dev.yaml b/.github/workflows/sync-dev-to-vX.Y-dev.yaml index b1ca733abd..1f36bd8252 100644 --- a/.github/workflows/sync-dev-to-vX.Y-dev.yaml +++ b/.github/workflows/sync-dev-to-vX.Y-dev.yaml @@ -46,7 +46,7 @@ jobs: git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE git merge origin/$HEAD -m "Merge $HEAD into $SYNC" git checkout origin/$BASE src/ - git checkout origin/$BASE -- tests/schema/ ':*.mjs' + git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo "" 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 7d62e30163..6eac1e9aad 100644 --- a/.github/workflows/sync-main-to-dev.yaml +++ b/.github/workflows/sync-main-to-dev.yaml @@ -42,7 +42,7 @@ jobs: git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE git merge origin/$HEAD -m "Merge $HEAD into $SYNC" git checkout origin/$BASE src/ - git checkout origin/$BASE -- tests/schema/ ':*.mjs' + git checkout origin/$BASE -- tests/schema/ ':!*.mjs' || echo "" git commit -m "Restored src/ and tests/schema/" || echo "" git push -u origin $SYNC From 33aa25cffaebf80a26ddce98ccc9ce2412217b49 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 13 Aug 2026 15:37:11 -0400 Subject: [PATCH 2/2] ci: adds comments Co-authored-by: Vincent Biret --- .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 1f36bd8252..00179fa36b 100644 --- a/.github/workflows/sync-dev-to-vX.Y-dev.yaml +++ b/.github/workflows/sync-dev-to-vX.Y-dev.yaml @@ -46,6 +46,8 @@ jobs: git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE git merge origin/$HEAD -m "Merge $HEAD into $SYNC" git checkout origin/$BASE src/ + # 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 "" 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 6eac1e9aad..732e9c4015 100644 --- a/.github/workflows/sync-main-to-dev.yaml +++ b/.github/workflows/sync-main-to-dev.yaml @@ -42,6 +42,8 @@ jobs: git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE git merge origin/$HEAD -m "Merge $HEAD into $SYNC" git checkout origin/$BASE src/ + # 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 "" git commit -m "Restored src/ and tests/schema/" || echo "" git push -u origin $SYNC