This is an automated email from the ASF dual-hosted git repository.

critas pushed a commit to branch wx_fix_ci
in repository https://gitbox.apache.org/repos/asf/iotdb-client-csharp.git

commit 0683b4d0b3d51391a2114bea67bbe89f194b57f4
Author: CritasWang <[email protected]>
AuthorDate: Wed Jan 7 17:22:00 2026 +0800

    fix ci
---
 .github/workflows/pre-commit-format.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/pre-commit-format.yml 
b/.github/workflows/pre-commit-format.yml
index de31eb7..a540aa1 100644
--- a/.github/workflows/pre-commit-format.yml
+++ b/.github/workflows/pre-commit-format.yml
@@ -20,6 +20,8 @@ jobs:
     env:
       DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
       DOTNET_CLI_TELEMETRY_OPTOUT: 1
+      TMPDIR: ${{ runner.temp }}
+      DOTNET_CLI_HOME: ${{ runner.temp }}/dotnet-home
 
     steps:
       - uses: actions/checkout@v4
@@ -37,6 +39,8 @@ jobs:
       - name: Clean dotnet temporary folder
         run: |
           sudo rm -rf /tmp/.dotnet
+          rm -rf "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
+          mkdir -p "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
 
       - name: Install pre-commit and dependencies
         run: |
@@ -44,8 +48,5 @@ jobs:
           pre-commit install-hooks
 
       - name: Run pre-commit checks
-        env:
-          TMPDIR: ${{ runner.temp }}
-          DOTNET_CLI_HOME: ${{ runner.temp }}
         run: |
           pre-commit run --all-files

Reply via email to