more buildscript fix

Signed-off-by: Alpha <dev@alpha93.kr>
This commit is contained in:
Alpha
2024-11-02 22:08:25 +09:00
committed by GitHub
parent 72565bec8e
commit d975acec6b

View File

@@ -97,7 +97,6 @@ jobs:
cd ..
if [ ! -d "javadoc" ]; then
echo "SUBMODULE_ADD=true" >> $GITHUB_ENV
mkdir javadoc && cd javadoc
git init && git branch -m ${{ env.VERSION }}
cd ..
@@ -141,7 +140,7 @@ jobs:
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
run: |
cd jdmain
if [ "${{ env.SUBMODULE_ADD }}" = "true" ]; then
if [ ! -d "${{ env.VERSION }}" ]; then
git submodule add -b ${{ env.VERSION }} https://github.com/PlazmaMC/Javadocs ${{ env.VERSION }}
fi
git submodule update