Update notify.mjs
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import got from 'got';
|
import got from 'got';
|
||||||
|
|
||||||
const STAGE_HOST = 'https://nightly.affine.pro/';
|
const STAGE_HOST = 'https://nightly.affine.pro/';
|
||||||
if (process.env.CF_PAGES_BRANCH === 'master') {
|
if (['master', 'develop'].includes(process.env.CF_PAGES_BRANCH)) {
|
||||||
const message = `Daily builds: New deployment of Ligo-Virgo version [${process.env.CF_PAGES_COMMIT_SHA}](${STAGE_HOST}), this [${STAGE_HOST}](${STAGE_HOST}) link always points to the latest version deployment, to access the old version, please go to Github to view the deployment record.`;
|
const message = `Daily builds: New deployment of Ligo-Virgo version [${process.env.CF_PAGES_COMMIT_SHA}](${STAGE_HOST}), this [${STAGE_HOST}](${STAGE_HOST}) link always points to the latest version deployment, to access the old version, please go to Github to view the deployment record.`;
|
||||||
const url = `https://api.telegram.org/bot${process.env.BOT_TOKEN}/sendMessage`;
|
const url = `https://api.telegram.org/bot${process.env.BOT_TOKEN}/sendMessage`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user