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:
@@ -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! ✅",
|
||||
|
||||
Reference in New Issue
Block a user