From b5a2b55542b8409aafd2d49d0e3e19d322bd0589 Mon Sep 17 00:00:00 2001 From: Saurabh Chavan Date: Thu, 26 Mar 2026 16:47:20 +0530 Subject: [PATCH] release pipeline script fixes to remove sync.yml in the PR --- .github/scripts/release-native-template.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/scripts/release-native-template.mjs b/.github/scripts/release-native-template.mjs index 578e1580..b0bbd11b 100644 --- a/.github/scripts/release-native-template.mjs +++ b/.github/scripts/release-native-template.mjs @@ -90,6 +90,10 @@ function injectUnreleasedToDoc(docPath, unreleasedContent) { return `${frontmatter}\n\n${beforeReleases}${title}\n\n${unreleasedContent}\n\n${releaseSections}`; } +// This file exists only in the fork (MendixMobile/docs) and not in upstream (mendix/docs). +// Removing it in our branch ensures it doesn't appear in the cross-fork PR diff. +const FORK_SYNC_FILE = ".github/workflows/sync.yml"; + async function cloneDocsRepo() { const git = simpleGit(); const docsCloneDir = fs.mkdtempSync( @@ -118,6 +122,10 @@ async function updateDocsNTReleaseNotes(unreleasedContent) { } async function createPRUpdateDocsNTReleaseNotes(git) { + // Remove the fork's sync.yml so it doesn't appear in the cross-fork PR diff. + if (fs.existsSync(FORK_SYNC_FILE)) { + await git.rm(FORK_SYNC_FILE); + } await git.add(TARGET_FILE); await git.commit( `docs: update mobile release notes for v${NATIVE_TEMPLATE_VERSION}`,