Skip to content

Commit

Permalink
Copyright header check [skip ci] (#2605)
Browse files Browse the repository at this point in the history
* add header check workflow

Signed-off-by: YanxuanLiu <[email protected]>

* ignore patches

Signed-off-by: YanxuanLiu <[email protected]>

* exclude

Signed-off-by: YanxuanLiu <[email protected]>

* change exclude

Signed-off-by: YanxuanLiu <[email protected]>

* update license header check

Signed-off-by: YanxuanLiu <[email protected]>

* change acion branch

Signed-off-by: YanxuanLiu <[email protected]>

* change branch

Signed-off-by: YanxuanLiu <[email protected]>

* change branch to test

Signed-off-by: YanxuanLiu <[email protected]>

* change back branch

Signed-off-by: YanxuanLiu <[email protected]>

* add more included patterns

Signed-off-by: YanxuanLiu <[email protected]>

---------

Signed-off-by: YanxuanLiu <[email protected]>
  • Loading branch information
YanxuanLiu authored Nov 20, 2024
1 parent 89db5c7 commit e9a73f1
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/license-header-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright (c) 2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# A workflow to check copyright/license header
name: license header check

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
license-header-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 5

- name: license-header-check
uses: NVIDIA/spark-rapids-common/license-header-check@main
with:
included_file_patterns: |
*.cpp,
*.hpp,
*.cu,
*.cuh,
*.java,
*.sh,
*Dockerfile*,
*Jenkinsfile*,
*.yml,
*.yaml,
*.txt,
*.xml,
*.fbs,
build/*

0 comments on commit e9a73f1

Please sign in to comment.