Dev #50
@@ -24,12 +24,23 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_SERVER_URL: http://192.168.5.15:3000
|
GITHUB_SERVER_URL: http://192.168.5.15:3000
|
||||||
steps:
|
steps:
|
||||||
- name: 检出配置源
|
- name: 从内网 Gitea 检出配置源
|
||||||
uses: actions/checkout@v4
|
shell: bash
|
||||||
- name: 准备 Node.js 运行时
|
env:
|
||||||
uses: actions/setup-node@v4
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
node-version: 20
|
set -euo pipefail
|
||||||
|
test -n "$GITEA_TOKEN"
|
||||||
|
git init .
|
||||||
|
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
|
||||||
|
git -c http.extraheader="Authorization: token $GITEA_TOKEN" fetch --no-tags --depth=1 origin "$GITHUB_SHA"
|
||||||
|
git checkout --detach "$GITHUB_SHA"
|
||||||
|
- name: 检查 Node.js 运行时
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
node_version="$(node --version)"
|
||||||
|
[[ "$node_version" == v20.* ]]
|
||||||
- name: 发布并校验配置
|
- name: 发布并校验配置
|
||||||
env:
|
env:
|
||||||
NACOS_ENVIRONMENT: ${{ inputs.environment || github.ref_name }}
|
NACOS_ENVIRONMENT: ${{ inputs.environment || github.ref_name }}
|
||||||
|
|||||||
+1
@@ -32,6 +32,7 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
"com.xiaowang.jacyucloudsalon.core.modules.payment.mapper",
|
"com.xiaowang.jacyucloudsalon.core.modules.payment.mapper",
|
||||||
"com.xiaowang.jacyucloudsalon.core.modules.planning.mapper",
|
"com.xiaowang.jacyucloudsalon.core.modules.planning.mapper",
|
||||||
"com.xiaowang.jacyucloudsalon.core.modules.product.mapper",
|
"com.xiaowang.jacyucloudsalon.core.modules.product.mapper",
|
||||||
|
"com.xiaowang.jacyucloudsalon.core.modules.registration.mapper",
|
||||||
"com.xiaowang.jacyucloudsalon.core.modules.security.mapper",
|
"com.xiaowang.jacyucloudsalon.core.modules.security.mapper",
|
||||||
"com.xiaowang.jacyucloudsalon.core.modules.shop.mapper",
|
"com.xiaowang.jacyucloudsalon.core.modules.shop.mapper",
|
||||||
"com.xiaowang.jacyucloudsalon.core.modules.system.mapper",
|
"com.xiaowang.jacyucloudsalon.core.modules.system.mapper",
|
||||||
|
|||||||
Reference in New Issue
Block a user