feat:将A_memorix导入修改为submodule的导入方式
This commit is contained in:
24
.github/workflows/docker-image-dev.yml
vendored
24
.github/workflows/docker-image-dev.yml
vendored
@@ -25,6 +25,7 @@ jobs:
|
||||
with:
|
||||
ref: dev
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
# Clone required dependencies
|
||||
# - name: Clone maim_message
|
||||
@@ -33,6 +34,17 @@ jobs:
|
||||
- name: Clone lpmm
|
||||
run: git clone https://github.com/Mai-with-u/MaiMBot-LPMM.git MaiMBot-LPMM
|
||||
|
||||
- name: Verify A_Memorix submodule alignment
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git -C plugins/A_memorix fetch origin MaiBot_branch --depth=1
|
||||
LOCAL_SHA=$(git -C plugins/A_memorix rev-parse HEAD)
|
||||
REMOTE_SHA=$(git -C plugins/A_memorix rev-parse FETCH_HEAD)
|
||||
if [ "${LOCAL_SHA}" != "${REMOTE_SHA}" ]; then
|
||||
echo "plugins/A_memorix is stale: local=${LOCAL_SHA}, remote=${REMOTE_SHA}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
@@ -79,6 +91,7 @@ jobs:
|
||||
with:
|
||||
ref: dev
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
# Clone required dependencies
|
||||
# - name: Clone maim_message
|
||||
@@ -87,6 +100,17 @@ jobs:
|
||||
- name: Clone lpmm
|
||||
run: git clone https://github.com/Mai-with-u/MaiMBot-LPMM.git MaiMBot-LPMM
|
||||
|
||||
- name: Verify A_Memorix submodule alignment
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git -C plugins/A_memorix fetch origin MaiBot_branch --depth=1
|
||||
LOCAL_SHA=$(git -C plugins/A_memorix rev-parse HEAD)
|
||||
REMOTE_SHA=$(git -C plugins/A_memorix rev-parse FETCH_HEAD)
|
||||
if [ "${LOCAL_SHA}" != "${REMOTE_SHA}" ]; then
|
||||
echo "plugins/A_memorix is stale: local=${LOCAL_SHA}, remote=${REMOTE_SHA}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user