Skip to content

Commit

Permalink
Update update-release-notes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyansong-adbe authored Oct 17, 2023
1 parent cca1f1c commit 951bf58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/update-release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ var reqGet = https.request(options, function(res) {

if (releaseFileContainsLineStartWith(dateLine) == true) {
const existingDateLine = contentArray.indexOf(dateLine);
contentArray.splice(existingDateLine + 1,0,"",`### Android BOM ${version}`, "",updateBOMReleaseNotesForAdobeIO(releaseNotes));
contentArray.splice(existingDateLine + 1,0,"",`### Android BOM ${version}`, "",updateBOMReleaseNotesForAdobeIO(releaseNotes));
} else {
contentArray.splice(releaseNotesHeaderIndex + 1,0,"",dateLine,"",`### Android BOM ${version}`, "",updateBOMReleaseNotesForAdobeIO(releaseNotes));
contentArray.splice(releaseNotesHeaderIndex + 1,0,"",dateLine,"",`### Android BOM ${version}`, "",updateBOMReleaseNotesForAdobeIO(releaseNotes));
}

fs.writeFile(releaseMdPath, contentArray.join("\n"), function (err) {
Expand Down

0 comments on commit 951bf58

Please sign in to comment.