| 1 |
# SPDX-FileCopyrightText: 2024 Emil Velikov <[email protected]> |
| 2 |
# |
| 3 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
|
| 5 |
name: Reuse Lint |
| 6 |
|
| 7 |
on: |
| 8 |
push: |
| 9 |
branches: [master, ci-test] |
| 10 |
pull_request: |
| 11 |
branches: [master] |
| 12 |
schedule: |
| 13 |
- cron: "30 2 * * 0" |
| 14 |
|
| 15 |
permissions: |
| 16 |
contents: read |
| 17 |
|
| 18 |
jobs: |
| 19 |
reuse: |
| 20 |
runs-on: ubuntu-latest |
| 21 |
steps: |
| 22 |
- name: Checkout the project |
| 23 |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 24 |
|
| 25 |
- name: Setup Python |
| 26 |
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 |
| 27 |
with: |
| 28 |
python-version: '3.10' |
| 29 |
|
| 30 |
- name: Install dependencies |
| 31 |
run: | |
| 32 |
_version=$(grep -o "reuse-.*" usbutils.spdx | cut -f2 -d'-') |
| 33 |
pip install reuse~=$_version |
| 34 |
|
| 35 |
- name: Check SPDX identifiers |
| 36 |
run: reuse lint |