工作流优化:简化仓库克隆路径配置
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 2s

在Gitea Actions工作流中,已更新仓库克隆目录的路径设置,以简化为当前目录下的相对路径。这样做旨在避免潜在的权限问题,并使工作流的配置更加清晰。
This commit is contained in:
Grand-cocoa 2024-09-18 17:56:47 +08:00
parent 4b3deaa520
commit 3b3d5b6fa6

View File

@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [ push ] on: [ push ]
env: env:
BARE_REPO_DIR: https://git.alina-dace.info/Dace/Mirai-bot.git BARE_REPO_DIR: https://git.alina-dace.info/Dace/Mirai-bot.git
CLONED_REPO_DIR: ./Dace/Mirai-bot CLONED_REPO_DIR: ./
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -11,7 +11,6 @@ jobs:
- run: | - run: |
rm -rf $CLONED_REPO_DIR rm -rf $CLONED_REPO_DIR
git clone $BARE_REPO_DIR $CLONED_REPO_DIR git clone $BARE_REPO_DIR $CLONED_REPO_DIR
- run: cd Dace/Mirai-bot
- run: pwd - run: pwd
- run: ls -sl - run: ls -sl
- run: chmod +x ./mvnw - run: chmod +x ./mvnw