diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml new file mode 100644 index 0000000..9897c86 --- /dev/null +++ b/.github/workflows/reuse.yml @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2024 Emil Velikov +# +# SPDX-License-Identifier: LGPL-2.1-or-later + +name: Reuse Lint + +on: + push: + branches: [master, ci-test] + pull_request: + branches: [master] + schedule: + - cron: "30 2 * * 0" + +permissions: + contents: read + +jobs: + reuse: + runs-on: ubuntu-latest + steps: + - name: Checkout the project + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + + - name: Setup Python + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + _version=$(grep -o "reuse-.*" usbutils.spdx | cut -f2 -d'-') + pip install reuse~=$_version + + - name: Check SPDX identifiers + run: reuse lint