Skip to content

Commit 181ed62

Browse files
Merge branch 'release/14.x.x' into moo/MOO-2230-enhance-cookie-encryption
2 parents b3a4d7f + f5223f6 commit 181ed62

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/scripts/release-native-template.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ function injectUnreleasedToDoc(docPath, unreleasedContent) {
9191
return `${frontmatter}\n\n${beforeReleases}${title}\n\n${unreleasedContent}\n\n${releaseSections}`;
9292
}
9393

94+
// This file exists only in the fork (MendixMobile/docs) and not in upstream (mendix/docs).
95+
// Removing it in our branch ensures it doesn't appear in the cross-fork PR diff.
96+
const FORK_SYNC_FILE = ".github/workflows/sync.yml";
97+
9498
async function cloneDocsRepo() {
9599
const git = simpleGit();
96100
const docsCloneDir = fs.mkdtempSync(
@@ -119,6 +123,10 @@ async function updateDocsNTReleaseNotes(unreleasedContent) {
119123
}
120124

121125
async function createPRUpdateDocsNTReleaseNotes(git) {
126+
// Remove the fork's sync.yml so it doesn't appear in the cross-fork PR diff.
127+
if (fs.existsSync(FORK_SYNC_FILE)) {
128+
await git.rm(FORK_SYNC_FILE);
129+
}
122130
await git.add(TARGET_FILE);
123131
await git.commit(
124132
`docs: update mobile release notes for v${NATIVE_TEMPLATE_VERSION}`,

0 commit comments

Comments
 (0)