ci: Add auto-release LTS branch detection (#8326)
This commit is contained in:
@@ -24,7 +24,7 @@ const templates = {
|
|||||||
async function config() {
|
async function config() {
|
||||||
|
|
||||||
// Get branch
|
// Get branch
|
||||||
const branch = ref.split('/').pop();
|
const branch = ref.split('/').pop().split('-')[0];
|
||||||
console.log(`Running on branch: ${branch}`);
|
console.log(`Running on branch: ${branch}`);
|
||||||
|
|
||||||
// Set changelog file
|
// Set changelog file
|
||||||
@@ -36,10 +36,12 @@ async function config() {
|
|||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
branches: [
|
branches: [
|
||||||
'release(-[0-9]+\.x\.x)?',
|
'release',
|
||||||
{ name: 'alpha', prerelease: true },
|
{ name: 'alpha', prerelease: true },
|
||||||
{ name: 'beta', prerelease: true },
|
{ name: 'beta', prerelease: true },
|
||||||
'next-major',
|
'next-major',
|
||||||
|
// Long-Term-Support branches; defined as GLOB pattern
|
||||||
|
'release-+([0-9]).x.x',
|
||||||
],
|
],
|
||||||
dryRun: false,
|
dryRun: false,
|
||||||
debug: true,
|
debug: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user