Skip to content

Commit 39caeb0

Browse files
authored
Merge pull request #5492 from baywet/ci/fix-checkout-behaviour
ci: fixes sync script to avoid grabbing old js files
2 parents 2a39513 + 36bc881 commit 39caeb0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE
4747
git merge origin/$HEAD -m "Merge $HEAD into $SYNC"
4848
git checkout origin/$BASE src/
49-
git checkout origin/$BASE tests/schema/
49+
git checkout origin/$BASE -- tests/schema/ ':*.mjs'
5050
git commit -m "Restored src/ and tests/schema/" || echo ""
5151
git push -u origin $SYNC
5252

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
git checkout -b $SYNC origin/$SYNC || git checkout -b $SYNC origin/$BASE
4343
git merge origin/$HEAD -m "Merge $HEAD into $SYNC"
4444
git checkout origin/$BASE src/
45-
git checkout origin/$BASE tests/schema/
45+
git checkout origin/$BASE -- tests/schema/ ':*.mjs'
4646
git commit -m "Restored src/ and tests/schema/" || echo ""
4747
git push -u origin $SYNC
4848

0 commit comments

Comments
 (0)