Merged in chore/include-tags-when-syncing-2 (pull request #3431)

actively fetch and push tags when syncing master -> test

* actively fetch and push tags when syncing master -> test

* git fetch --all --tags


Approved-by: Anton Gunnarsson
This commit is contained in:
Joakim Jäderberg
2026-01-14 12:46:25 +00:00
parent d0bc732d8a
commit 2410d887df
2 changed files with 12 additions and 1 deletions

View File

@@ -119,7 +119,15 @@ export const onPreBuild = async function ({ utils }) {
// Always fetch to ensure FETCH_HEAD is available
logger.debug(`Fetching from origin`)
await run("git", ["-C", CLONE_DIR, "fetch", "origin", SYNC_SOURCE])
await run("git", [
"-C",
CLONE_DIR,
"fetch",
"--all",
"--tags",
"origin",
SYNC_SOURCE,
])
logger.debug(`Attempting to sync: ${SYNC_DEST.join(", ")}`)
@@ -135,6 +143,8 @@ export const onPreBuild = async function ({ utils }) {
console.log(`Successfully synced '${branch}' with '${SYNC_SOURCE}'`)
}
await run("git", ["-C", CLONE_DIR, "push", "origin", "--tags"])
utils.status.show({
title: "Branch sync",
summary: "All branches are synced! ✅",

View File

@@ -28,6 +28,7 @@
"i18n:pull": "yarn i18n:download && yarn i18n:compile && yarn i18n:distribute",
"i18n:sync": "yarn i18n:push && yarn i18n:pull",
"i18n:syncDefaultMessage": "yarn i18n:download && bun scripts/i18n/syncDefaultMessage/index.ts scripts/i18n/translations/en.json '{apps,packages}/**/*.{tsx,ts}' && yarn format --force",
"deploy:test": "yarn dlx tsx scripts/deploy/deploy.ts test",
"deploy:stage": "yarn dlx tsx scripts/deploy/deploy.ts stage",
"deploy:preprod": "yarn dlx tsx scripts/deploy/deploy.ts preprod",
"deploy:prod": "yarn dlx tsx scripts/deploy/deploy.ts prod"