Skip to content

Commit d49d7b4

Browse files
committed
Switch license check to spdx-checker
1 parent debd7f6 commit d49d7b4

4 files changed

Lines changed: 35 additions & 35 deletions

File tree

.github/workflows/ci_license_header_check.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci_spdx_license_header_check
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- main
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
paths:
12+
- "scribe/**"
13+
push:
14+
branches:
15+
- main
16+
paths:
17+
- "scribe/**"
18+
19+
jobs:
20+
check_license_header:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout Project
24+
uses: actions/checkout@v6
25+
26+
- name: Check SPDX Licenses
27+
uses: to-sta/spdx-checker-action@v0.0.3
28+
with:
29+
target-license: "GPL-3.0-or-later"
30+
file-paths: "**/*.java,**/*.kt,**/*.kts"
31+
extensions: "java,kt,kts"
32+
exclude: "**/*.md,**/*.txt,**/.git/**"
33+
continue-on-error: false
34+
fix: false

.licenserc.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: check-yaml
2525

2626
- repo: https://github.com/to-sta/spdx-checker-pre-commit
27-
rev: 0.1.7
27+
rev: 0.1.8
2828
hooks:
2929
- id: spdx-license-checker
3030
name: run spdx-checker license check

0 commit comments

Comments
 (0)