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