From 882b2da148bbd647329a7aeab8c66f9cf0d23226 Mon Sep 17 00:00:00 2001 From: Martijn Govers Date: Tue, 30 Jan 2024 10:03:05 +0100 Subject: [PATCH] add reuse compliance workflow Signed-off-by: Martijn Govers --- .github/workflows/reuse-compliance.yml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/reuse-compliance.yml diff --git a/.github/workflows/reuse-compliance.yml b/.github/workflows/reuse-compliance.yml new file mode 100644 index 0000000..ff9e0a1 --- /dev/null +++ b/.github/workflows/reuse-compliance.yml @@ -0,0 +1,29 @@ +# SPDX-FileCopyrightText: 2022 Contributors to the Power Grid Model project +# +# SPDX-License-Identifier: MPL-2.0 + + +name: REUSE Compliance Check + +on: + # run pipeline on push event of main or release branch + push: + branches: + - main + - 'release/**' + # run pipeline on pull request + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + reuse-compliance-check: + if: (github.event_name == 'push') || (!startsWith(github.head_ref, 'release')) + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: REUSE Compliance Check + uses: fsfe/reuse-action@v2