From b01aa92c1cf40eb67b7f4991ef8fb6d99b5907be Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Thu, 4 Apr 2024 19:20:24 +0700 Subject: [PATCH] ci: Don't use tmp dir --- .github/workflows/build.yml | 2 +- .scripts/compile_kits.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 032e561..694c9ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: - name: NeoForge Kits Cache uses: actions/cache@v4 with: - path: Kits + path: ~/Kits key: ${{ runner.os }}-Kits-${{ hashFiles('snapshot_version') }} restore-keys: | ${{ runner.os }}-Kits- diff --git a/.scripts/compile_kits.sh b/.scripts/compile_kits.sh index 9b8a12f..e516a7c 100755 --- a/.scripts/compile_kits.sh +++ b/.scripts/compile_kits.sh @@ -11,7 +11,6 @@ MC_VERSION=$(cat snapshot_version 2>/dev/null) if [[ $MC_VERSION == *"w"** ]]; then branch=port/${MC_VERSION} echo "Detected MC snapshot ${MC_VERSION}" - cd $(mktemp -d) echo "Downloading Kits ${branch}..." git clone -q -b ${branch} --depth 1 https://github.com/neoforged/NeoForge Kits >/dev/null cd Kits