We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43b3ba commit 8a97f47Copy full SHA for 8a97f47
.github/workflows/format.yml
@@ -1,18 +1,21 @@
1
-name: Validate PR
+name: Validate Commit
2
3
-on: [pull_request]
+on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - 'fix/*'
8
+ - 'feature/*'
9
+
10
+ pull_request:
11
12
13
14
jobs:
15
format:
16
runs-on: ubuntu-latest
17
name: DotNet Format
18
steps:
19
- uses: actions/checkout@v2
-
- # workaround for dotnet tools not being on path https://github.com/actions/virtual-environments/issues/213
- - name: add .dotnet/tools to path
- run: echo "::set-env name=PATH::${PATH}:${HOME}/.dotnet/tools"
20
- run: dotnet tool install -g dotnet-format
21
- run: dotnet format ./ --folder --check --exclude **/AddFormats/
0 commit comments