Skip to content

Commit 49548c5

Browse files
committed
test
1 parent 39e89d4 commit 49548c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ jobs:
3838
run: |
3939
echo "TMPDIR=${{ runner.temp }}/dotnet-tmp" >> "$GITHUB_ENV"
4040
echo "DOTNET_CLI_HOME=${{ runner.temp }}/dotnet-home" >> "$GITHUB_ENV"
41+
echo "XDG_RUNTIME_DIR=${{ runner.temp }}/xdg-runtime" >> "$GITHUB_ENV"
42+
echo "NUGET_PACKAGES=${{ runner.temp }}/nuget-packages" >> "$GITHUB_ENV"
4143
4244
- name: Clean dotnet temporary folder
4345
run: |
4446
sudo rm -rf /tmp/.dotnet
45-
rm -rf "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
46-
mkdir -p "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME"
47+
rm -rf "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME" "$XDG_RUNTIME_DIR" "$NUGET_PACKAGES"
48+
mkdir -p "$TMPDIR/.dotnet" "$DOTNET_CLI_HOME" "$XDG_RUNTIME_DIR" "$NUGET_PACKAGES"
49+
chmod 700 "$XDG_RUNTIME_DIR"
4750
4851
- name: Install pre-commit and dependencies
4952
run: |

0 commit comments

Comments
 (0)