ci: Add lint license #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2024 ETH Zurich and University of Bologna. | |
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
# SPDX-License-Identifier: Apache-2.0 | |
# Author: Cyril Koenig <[email protected]> | |
name: lint-license | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
lint-license: | |
runs-on: ubuntu-latest | |
steps: | |
- name: lint license | |
uses: pulp-platform/pulp-actions/[email protected] # update version as needed, not autoupdated | |
with: | |
license: | | |
Copyright (\d{4}(-\d{4})?\s)?(ETH Zurich and University of Bologna|lowRISC contributors). | |
(Solderpad Hardware License, Version 0.51|Licensed under the Apache License, Version 2.0), see LICENSE for details. | |
SPDX-License-Identifier: (SHL-0.51|Apache-2.0|GPL-2.0 OR Apache-2.0) | |