feat:移除submodule安装流
This commit is contained in:
24
.github/workflows/docker-image-main.yml
vendored
24
.github/workflows/docker-image-main.yml
vendored
@@ -29,7 +29,6 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
# Clone required dependencies
|
||||
# - name: Clone maim_message
|
||||
@@ -38,17 +37,6 @@ 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:
|
||||
@@ -94,7 +82,6 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
# Clone required dependencies
|
||||
# - name: Clone maim_message
|
||||
@@ -103,17 +90,6 @@ 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