From 7a9d0327f93fcac5db02df6b61c4f14530b6e23e Mon Sep 17 00:00:00 2001 From: Matthias Fax Date: Mon, 14 Sep 2020 23:23:45 +0200 Subject: [PATCH] test: check for excluded globs --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24b63fa..f0b3415 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,6 +96,16 @@ jobs: run: | echo "::error:: the generated file still contained an email address" exit 1 + - name: verify lack of LICENSE glob + continue-on-error: true + run: | + grep -q "LICENSE" .github/CODEOWNERS.test + echo "::set-env name=license::success" + - name: fail if license is detected + if: env.license == 'success' + run: | + echo "::error:: the generated file contained a LICENSE glob" + exit 1 - uses: actions/upload-artifact@v2.1.4 with: name: ${{ github.job }}-owners