From 1db282894d73df0f1e9767ac50b9b61f212d9a2e Mon Sep 17 00:00:00 2001 From: Simon Ensslen Date: Fri, 22 Dec 2023 08:39:03 +0100 Subject: [PATCH] use built in dotnet format --- .github/workflows/action.yml | 12 ++---------- .../PackageInformationReader/PackageMetadata.cs | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 6a887c67..b41d8cc6 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -54,16 +54,8 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: Add dotnet-format problem matcher - uses: xt0rted/dotnet-format-problem-matcher@v1 - - - name: Restore dotnet tools - uses: xt0rted/dotnet-tool-restore@v1 - - - name: Run dotnet format - uses: xt0rted/dotnet-format@v1 - with: - only-changed-files: ${{ github.event_name == 'pull_request' }} + - name: run dotnet format + uses: dotnet format --verify-no-changes check_licenses: runs-on: ubuntu-latest diff --git a/src/NuGetUtility/PackageInformationReader/PackageMetadata.cs b/src/NuGetUtility/PackageInformationReader/PackageMetadata.cs index 7c9f3769..14606816 100644 --- a/src/NuGetUtility/PackageInformationReader/PackageMetadata.cs +++ b/src/NuGetUtility/PackageInformationReader/PackageMetadata.cs @@ -28,6 +28,6 @@ public PackageMetadata(PackageIdentity identity, string licenseIdentifier, Licen public string Summary => string.Empty; - public LicenseMetadata? LicenseMetadata { get; } = null; + public LicenseMetadata? LicenseMetadata { get; } = null; } }