Skip to content

Commit 4ed95f5

Browse files
committed
Don't fail if dir already exists
1 parent 097d126 commit 4ed95f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/nugetTests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
with:
3131
ref: ${{ github.event.pull_request.head.sha }}
3232

33-
# Ubuntu agents require Mono to run nuget.exe, and to set permissions for the dotnet home directory
33+
# Ubuntu agents require Mono to run nuget.exe.
34+
# Also, there is an issue with the .NET setup action that requires setting permissions for the dotnet home directory.
35+
# Therefore, we manually set permissions until the issue is resolved. (https://github.com/actions/setup-dotnet/issues/565)
3436
- name: Prepare Ubuntu agent
3537
if: matrix.os == 'ubuntu'
3638
run: |
@@ -42,7 +44,7 @@ jobs:
4244
sudo apt-get update
4345
sudo apt-get install -y mono-complete
4446
# Set permissions for the dotnet home directory
45-
sudo mkdir /usr/share/dotnet
47+
sudo mkdir -p /usr/share/dotnet
4648
sudo chmod 777 /usr/share/dotnet
4749
4850
- name: Install .NET

0 commit comments

Comments
 (0)