CI(modules/web/build): check github workflows ENV
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
import { URL } from "node:url";
|
import { URL } from "node:url";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
import process from "node:process";
|
||||||
|
|
||||||
|
if (!process.env.GITHUB_ENV) {
|
||||||
|
console.log("非Github WorkFlows环境,取消文件复制")
|
||||||
|
process.exit()
|
||||||
|
}
|
||||||
const LEGADO_ASSETS_WEB_VUE_DIR = new URL(
|
const LEGADO_ASSETS_WEB_VUE_DIR = new URL(
|
||||||
"../../../app/src/main/assets/web/vue",
|
"../../../app/src/main/assets/web/vue",
|
||||||
import.meta.url,
|
import.meta.url,
|
||||||
|
|||||||
Reference in New Issue
Block a user