Skip to content

Commit 96bb85a

Browse files
add copyright check CI
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
1 parent 5e38df2 commit 96bb85a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Copyright Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- '**.md'
9+
- '**.svg'
10+
- '**.png'
11+
- 'docs/**'
12+
- '.github/**'
13+
push:
14+
branches:
15+
- main
16+
paths-ignore:
17+
- 'docs/**'
18+
- '.github/**'
19+
20+
jobs:
21+
22+
build:
23+
runs-on: ubuntu-22.04
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: install sponge
28+
shell: bash
29+
run: sudo apt-get update && sudo apt-get install -y moreutils
30+
- name: generate copyright
31+
shell: bash
32+
run: |
33+
make gen-copyright
34+
- name: check diff
35+
shell: bash
36+
run: |
37+
git diff --exit-code

0 commit comments

Comments
 (0)