From 7f37f8b353221301c95432d66570d7438a02ca30 Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 3 Dec 2022 12:45:04 +0000 Subject: [PATCH] fix(ci): run dotnet format check only on push to .net paths --- .github/workflows/dotnetformat.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnetformat.yml b/.github/workflows/dotnetformat.yml index 8aaa6c21..a3dbf37d 100644 --- a/.github/workflows/dotnetformat.yml +++ b/.github/workflows/dotnetformat.yml @@ -1,5 +1,19 @@ name: Format check on pull request -on: [push, pull_request] + +on: + push: + paths: + - 'Myriad/**' + - 'PluralKit.API/**' + - 'PluralKit.Bot/**' + - 'PluralKit.Core/**' + pull_request: + paths: + - 'Myriad/**' + - 'PluralKit.API/**' + - 'PluralKit.Bot/**' + - 'PluralKit.Core/**' + jobs: dotnet-format: runs-on: ubuntu-latest