From 6ee39146f8c0d93aa99d3d7c6c4f261cc4e720b1 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai Date: Fri, 11 Mar 2022 06:35:47 -0800 Subject: [PATCH] Update workflows (#227) --- .github/workflows/dotnet-format.yml | 9 +++++++-- .github/workflows/markdownlint.yml | 4 ++++ .github/workflows/sanitycheck.yml | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index f9f2e38b5b1..a546f816764 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -1,6 +1,11 @@ name: dotnet format on: + push: + branches: [ main ] + paths: + - '**.cs' + - '.editorconfig' pull_request: branches: [ main ] paths: @@ -15,10 +20,10 @@ jobs: - name: check out code uses: actions/checkout@v2 - - name: Setup .NET Core 3.1 + - name: Setup .NET Core 6.0 uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.x + dotnet-version: 6.0.x - name: Install format tool run: dotnet tool install -g dotnet-format diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index 77c8957b460..1e56c154788 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -1,6 +1,10 @@ name: markdownlint on: + push: + branches: [ main ] + paths: + - '**.md' pull_request: branches: [ main ] paths: diff --git a/.github/workflows/sanitycheck.yml b/.github/workflows/sanitycheck.yml index 92fda06a6a9..7de88aeb7f8 100644 --- a/.github/workflows/sanitycheck.yml +++ b/.github/workflows/sanitycheck.yml @@ -1,6 +1,8 @@ name: sanitycheck on: + push: + branches: [ main ] pull_request: branches: [ main ]