Skip to content

Commit 9ea4ffb

Browse files
committed
chore: Optimize action
1 parent 288fede commit 9ea4ffb

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release_test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,9 @@ jobs:
6262
# JRE拷贝到前端静态目录
6363
- name: Copy JRE to static directory
6464
run: |
65-
mkdir -p chat2db-client/static/jre
66-
cp -r "$JAVA_HOME" chat2db-client/static/jre
67-
if [ "${{ runner.os }}" = "Windows" ]; then
68-
cp -r ${{ env.JAVA_HOME }} chat2db-client/static/jre
69-
else
70-
cp -r $JAVA_HOME chat2db-client/static/jre
65+
mkdir -p chat2db-client/static
66+
cp -r "$JAVA_HOME"/jre chat2db-client/static/jre
67+
if [ "${{ runner.os }}" != "Windows" ]; then
7168
chmod -R 777 chat2db-client/static/jre
7269
fi
7370
shell: bash

0 commit comments

Comments
 (0)