Skip to content

Commit 682b4ae

Browse files
committed
Add Git diff check workflow
0 parents  commit 682b4ae

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Git diff Check
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
branches: [main]
10+
11+
jobs:
12+
Analyze:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 2
20+
21+
- name: Run git diff check
22+
run: |
23+
git config --global core.whitespace cr-at-eol,tab-in-indent
24+
git diff --check HEAD^

0 commit comments

Comments
 (0)