Skip to content

Commit 2f4f1e8

Browse files
committed
license: polish and add checker
1 parent ec8e048 commit 2f4f1e8

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/license.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: License Check
17+
18+
on: [push, pull_request]
19+
20+
jobs:
21+
license:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Check License Header
26+
uses: apache/skywalking-eyes/header@501a28d2fb4a9b962661987e50cf0219631b32ff
27+
# with:
28+
# log: debug # optional: set the log level. The default value is `info`.
29+
# config: .licenserc.yaml # optional: set the config file. The default value is `.licenserc.yaml`.
30+
# token: # optional: the token that license eye uses when it needs to comment on the pull request. Set to empty ("") to disable commenting on pull request. The default value is ${{ github.token }}
31+
# mode: # optional: Which mode License-Eye should be run in. Choices are `check` or `fix`. The default value is `check`.

.licenserc.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ header:
3232
- '.gitattributes'
3333
- '.github/ISSUE_TEMPLATE/**'
3434
- '.gitmodules'
35-
- 'DISCLAIMER*'
36-
- 'KEYS'
35+
- 'DISCLAIMER'
3736
- 'LICENSE'
3837
- 'NOTICE'
3938
- 'licenses'

0 commit comments

Comments
 (0)