From db7169498eb83f850acc739edd50f9b7c673810f Mon Sep 17 00:00:00 2001 From: Saurabh Chavan Date: Thu, 26 Mar 2026 16:56:18 +0530 Subject: [PATCH] pipeline fix for unncessary sync yml in docs 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 6fe63b26..8b672a9b 100644 --- a/.github/scripts/release-native-template.mjs +++ b/.github/scripts/release-native-template.mjs @@ -91,6 +91,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( @@ -119,6 +123,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}`,