From 2ed1a3bd70c818835c4e7dc521d31cdd9f9e780b Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Tue, 15 Oct 2024 14:09:48 +0200 Subject: [PATCH] .github: detect GPL license in PRs Signed-off-by: Ernesto Puerta --- .github/workflows/check-license.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/check-license.yml diff --git a/.github/workflows/check-license.yml b/.github/workflows/check-license.yml new file mode 100644 index 0000000000000..d201ed7135439 --- /dev/null +++ b/.github/workflows/check-license.yml @@ -0,0 +1,13 @@ +--- +name: "Check Incomatible Licenses" +on: [pull_request] + +jobs: + check_pr: + runs-on: ubuntu-latest + steps: + - name: Check PR + uses: JJ/github-pr-contains-action@526dfe784d8604ea1c39b6c26609074de95b1ffd # releases/v14.1 + with: + github-token: ${{github.token}} + diffDoesNotContain: "GNU General Public License"