From 0be837f89592576ced5cd7323d15a69999bb179b Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Thu, 4 Aug 2022 16:56:40 -0700 Subject: [PATCH] Nit workflow fix to keep CI greener (#3548) --- .github/workflows/dotnet-format-md.yml | 7 ++++--- .github/workflows/dotnet-format.yml | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet-format-md.yml b/.github/workflows/dotnet-format-md.yml index 5453ddca941..27669afa52d 100644 --- a/.github/workflows/dotnet-format-md.yml +++ b/.github/workflows/dotnet-format-md.yml @@ -10,12 +10,13 @@ name: dotnet format on: pull_request: branches: [ main ] - paths: - - '**.md' + paths-ignore: + - '**.cs' + - '.editorconfig' jobs: check-format: runs-on: ubuntu-latest steps: - - run: 'echo "No build required"' + - run: 'echo "No build required"' \ No newline at end of file diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 65bb24e7e1e..f16fb9787da 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -21,10 +21,9 @@ jobs: uses: actions/checkout@v3 - name: Setup .NET Core 7.0 - - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v2 with: dotnet-version: '7.0.x' - include-prerelease: true - name: Install format tool run: dotnet tool install -g dotnet-format