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! ✅",