Skip to content

Commit 0683b4d

Browse files
committed
fix ci
1 parent f494ac2 commit 0683b4d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pre-commit-format.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
env:
2121
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
2222
DOTNET_CLI_TELEMETRY_OPTOUT: 1
23+
TMPDIR: ${{ runner.temp }}
24+
DOTNET_CLI_HOME: ${{ runner.temp }}/dotnet-home
2325

2426
steps:
2527
- uses: actions/checkout@v4
@@ -37,15 +39,14 @@ jobs:
3739
- name: Clean dotnet temporary folder
3840
run: |
3941
sudo rm -rf /tmp/.dotnet
42+
rm -rf "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
43+
mkdir -p "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
4044
4145
- name: Install pre-commit and dependencies
4246
run: |
4347
pip install pre-commit
4448
pre-commit install-hooks
4549
4650
- name: Run pre-commit checks
47-
env:
48-
TMPDIR: ${{ runner.temp }}
49-
DOTNET_CLI_HOME: ${{ runner.temp }}
5051
run: |
5152
pre-commit run --all-files

0 commit comments

Comments
 (0)