ci: Add auto-release LTS branch detection (#8326)

This commit is contained in:
Manuel
2022-11-19 17:37:15 +01:00
committed by GitHub
parent fe3dc0d14d
commit c312e261b6

View File

@@ -24,7 +24,7 @@ const templates = {
async function config() {
// Get branch
const branch = ref.split('/').pop();
const branch = ref.split('/').pop().split('-')[0];
console.log(`Running on branch: ${branch}`);
// Set changelog file
@@ -36,10 +36,12 @@ async function config() {
const config = {
branches: [
'release(-[0-9]+\.x\.x)?',
'release',
{ name: 'alpha', prerelease: true },
{ name: 'beta', prerelease: true },
'next-major',
// Long-Term-Support branches; defined as GLOB pattern
'release-+([0-9]).x.x',
],
dryRun: false,
debug: true,