From d6febaa5247d0f671d3534fb91616d3aa3b8ded1 Mon Sep 17 00:00:00 2001 From: Ben Banfield-Zanin Date: Mon, 27 Oct 2025 09:36:27 +0000 Subject: [PATCH] CI: don't allow multiple Element Creations Ltd Copyright headers --- .github/workflows/licensing.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/licensing.yml b/.github/workflows/licensing.yml index b435f8b3..838618cb 100644 --- a/.github/workflows/licensing.yml +++ b/.github/workflows/licensing.yml @@ -48,6 +48,12 @@ jobs: run: | ./scripts/spdx_check_all_files.py "$RUNNER_TEMP/reuse.spdx" + # `reuse spdx` will coalesce multiple identical copyright headerts + if grep -Pzlr '(?s)Copyright \d{4}(-\d{4})? Element Creations Ltd\n.*Copyright \d{4}(-\d{4})? Element Creations Ltd' .; then + echo "Some files had more than 1 Element Creations Ltd header" + exit 1 + fi + - name: Copyright dates if: ${{ github.event_name == 'pull_request' }} env: