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
5 changes: 4 additions & 1 deletion build-automation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const nodeKeys = readFileSync(resolve(import.meta.dirname, 'keys', 'node.keys'))

const updatedVersions = [];

let isSecurity = true;

try {
console.log(
`Found major versions in versions.json: ${Object.keys(supportedVersions).join(', ')}`,
Expand Down Expand Up @@ -127,6 +129,7 @@ try {
} else if (latestVersion.version !== localVersion) {
console.log(`\t${variant}: updating to ${latestVersion.version}`);
updatedVersions.push(latestVersion.version);
isSecurity &= latestVersion.security;
writeFileSync(dockerfilePath, dockerfileOutput);
} else {
console.warn(
Expand All @@ -139,7 +142,7 @@ try {
// Let the GitHub Action library set the GITHUB_ENV file rather than manually handling it
exportVariable(
'NODE_PR_TITLE',
`feat: Node.js ${[...new Set(updatedVersions)].join(', ')}`,
`feat${isSecurity ? '[security]' : ''}: Node.js ${[...new Set(updatedVersions)].join(', ')}`,
);
} else {
console.log('No Pull Request will be created.');
Expand Down
Loading