diff --git a/.github/workflows/dotnet-format-daily.yml b/.github/workflows/dotnet-format-daily.yml index 1b5af60392ac..8ed1f4df3b3e 100644 --- a/.github/workflows/dotnet-format-daily.yml +++ b/.github/workflows/dotnet-format-daily.yml @@ -13,8 +13,9 @@ permissions: jobs: dotnet-format: - runs-on: windows-latest + runs-on: ubuntu-latest strategy: + fail-fast: false matrix: branch: [ main, net10.0, inflight/current ] steps: @@ -47,16 +48,12 @@ jobs: dotnet --info dotnet workload --info - - name: Reset tracked files to clean workspace - shell: bash - run: | - git reset --hard HEAD + # - name: Restore solution + # run: dotnet restore Microsoft.Maui.sln - name: Run dotnet format - run: | - dotnet restore Microsoft.Maui.sln - dotnet format Microsoft.Maui.sln --exclude Templates/src --exclude-diagnostics CA1822 - + run: dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 + - name: Create Pull Request uses: dotnet/actions-create-pull-request@v4 with: