diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d0864c6dce3..2a79ad8a516e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -189,7 +189,7 @@ commands: when: on_fail command: git fetch --unshallow - discord/status: - only_for_branches: main,next,alpha + only_for_branches: main,next,next-release,latest-release fail_only: true failure_message: $(yarn get-report-message << pipeline.parameters.workflow >> << parameters.template >>) jobs: diff --git a/scripts/get-report-message.ts b/scripts/get-report-message.ts index 4a6c9f209e14..28edcf1fe5a8 100644 --- a/scripts/get-report-message.ts +++ b/scripts/get-report-message.ts @@ -3,7 +3,7 @@ import { command } from 'execa'; import { readJson } from 'fs-extra'; import { join } from 'path'; -type Branch = 'main' | 'next' | 'alpha'; +type Branch = 'main' | 'next' | 'alpha' | 'next-release' | 'latest-release'; type Workflow = 'merged' | 'daily'; const getFooter = async (branch: Branch, workflow: Workflow, job: string) => { @@ -11,7 +11,8 @@ const getFooter = async (branch: Branch, workflow: Workflow, job: string) => { return `\n\nThis might not necessarily be a bug, it could be a visual diff that you have to review and approve. Please check it!`; } - if (branch === 'alpha') { + // The CI workflows can run on release branches and we should display the version number + if (branch === 'next-release' || branch === 'latest-release') { const packageJson = await readJson(join(__dirname, '..', 'code', 'package.json')); // running in alpha branch we should just show the version which failed