Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/scripts/release-native-template.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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}`,
Expand Down